小编ill*_*lly的帖子

Heroku:错误推送Rails应用程序到Heroku,Heroku找不到Rails应用程序

我试图将Rails应用程序推送到Heroku但是我经常遇到这个错误.

user$ git push heroku master
Initializing repository, done.
Counting objects: 158, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (144/144), done.
Writing objects: 100% (158/158), 671.52 KiB | 160.00 KiB/s, done.
Total 158 (delta 32), reused 0 (delta 0)

-----> Ruby app detected
-----> Compiling Ruby/Rails
 !
 !     An error occurred while installing Ruby ruby-2.1.1
 !     For supported Ruby versions see https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
 !     Note: Only the most recent version of Ruby 2.1 is supported on Cedar-14 …
Run Code Online (Sandbox Code Playgroud)

ruby git ruby-on-rails heroku ruby-on-rails-4.2

3
推荐指数
1
解决办法
2682
查看次数

Ruby on Rails:无法在生产中退出应用程序

我在Heroku上部署了一个应用程序.一切正常,除了退出.当我点击链接退出时,我收到此错误:

"您正在寻找的页面不存在.您可能输错了地址或页面可能已移动.如果您是应用程序所有者,请检查日志以获取更多信息."

对于用户身份验证,我当然使用设计宝石,我有多个解决方案在Stack Overflow上徘徊,但它们都没有为我工作.看看下面的文件.

Heroku日志:

2014-10-04T18:17:49.022165+00:00 app[web.1]: Started GET "/users/sign_out" for 66.65.108.74 at 2014-10-04 18:17:49 +0000
2014-10-04T18:17:49.027680+00:00 app[web.1]: 
2014-10-04T18:17:49.027702+00:00 app[web.1]:   vendor/bundle/ruby/2.1.0/gems/railties-4.1.5/lib/rails/rack/logger.rb:20:in `block in call'
2014-10-04T18:17:49.027684+00:00 app[web.1]: ActionController::RoutingError (No route matches [GET] "/users/sign_out"):
2014-10-04T18:17:49.027686+00:00 app[web.1]:   vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
2014-10-04T18:17:49.027699+00:00 app[web.1]:   vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2014-10-04T18:17:49.027701+00:00 app[web.1]:   vendor/bundle/ruby/2.1.0/gems/railties-4.1.5/lib/rails/rack/logger.rb:38:in `call_app'
2014-10-04T18:17:49.027704+00:00 app[web.1]:   vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.5/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2014-10-04T18:17:49.027711+00:00 app[web.1]:   vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-10-04T18:17:49.027706+00:00 app[web.1]:   vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.5/lib/active_support/tagged_logging.rb:68:in `tagged'
2014-10-04T18:17:49.027720+00:00 app[web.1]:   vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2014-10-04T18:17:49.027719+00:00 app[web.1]:   vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2014-10-04T18:17:49.027705+00:00 app[web.1]:   vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.5/lib/active_support/tagged_logging.rb:26:in `tagged'
2014-10-04T18:17:49.027708+00:00 app[web.1]:   vendor/bundle/ruby/2.1.0/gems/railties-4.1.5/lib/rails/rack/logger.rb:20:in `call'
2014-10-04T18:17:49.027713+00:00 app[web.1]:   vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.5/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
2014-10-04T18:17:49.027710+00:00 app[web.1]: …
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails heroku devise

2
推荐指数
1
解决办法
689
查看次数

如何在不使用jQuery的情况下重写此行?

这里有一个测验应用程序,我想知道如何在没有$的情况下重写这个条件.

if ($('input[name="radioOption"]:checked').length < 1) {
    alert('Please Make a Selection');
}
Run Code Online (Sandbox Code Playgroud)

这里是所有代码的小提琴:: https://jsfiddle.net/scrippyfingers/z84pc45t/

html javascript jquery

0
推荐指数
1
解决办法
60
查看次数