本文介绍了Active Admin Gem - Rails 3.2.3,Heroku错误日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我在理解错误日志时遇到问题。我使用Active Admin,在我的本地服务器上运行良好,但是当我推到Heroku时,我无法登录或使用活动管理员。我有点卡住了问题是什么。我的妻子的前端工作,但当我尝试登录第一次,我得到这个错误。 我跑了 heroku run rake db:migrate 应用程序.rb config.assets.initialize_on_precompile = false routes.rb 如果ARGV.join.include中断, 'assets:precompile' Heroku日志 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack -3.2.3 / lib / action_controller / metal / responder.rb:153:在'respond'中 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby /1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/responder.rb:146:in`call' 2012-06-01T06:11:53 + 00:00 app [web。 1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_controller / metal / mime_responds.rb:239:在`respond_with' 2012-06-01T06:11:53 +00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / devise-2.1.0 / app / controllers / devise / sessions_controller.rb:9:in'new' 2012 -06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_controller / metal / implicit_render.rb:4:in `send_action' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / abstract_controller / base .R b:167:在`process_action' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / abstract_controller / callbacks.rb:18:在`block in process_action' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gem / actionpack-3.2.3 / lib / action_controller / metal / rendering.rb:10:在`process_action' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activesupport-3.2.3 / lib / active_support / callbacks.rb:436:in _run__2148348972389484395__process_action__581573497384646045__callbacks' 2012-06-01T06:11:53 + 00:00 app [web .1]:vendor / bundle / ruby / 1.9.1 / gems / activesupport-3.2.3 / lib / active_support / callbacks.rb:405:在__run_callback' 2012-06-01T06:11:53+ 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activesupport-3.2.3 / lib / active_support / callbacks.rb:385:in'_run_process_action_callbacks' 2012-06- 01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activesupport-3.2.3 / lib / active_support / callb acks.rb:81:'run_callbacks' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2。 3 / lib / abstract_controller / callbacks.rb:17:在`process_action' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gem / actionpack-3.2.3 / lib / action_controller / metal / rescue.rb:29:在`process_action' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_controller / metal / instrumentation.rb:30:在`block in process_action' 2012-06-01T06:11:53 + 00: 00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activesupport-3.2.3 / lib / active_support / notifications.rb:123:在`block in instrument' 2012-06- 01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activesupport-3.2.3 / lib / active_support / notifications / instrumenter.rb:20: 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activesupport-3.2.3 / lib / active_support / notifications.rb: 123:在`乐器'中 2 012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_controller / metal / instrumentation.rb:29:在`process_action' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_controller / metal / params_wrapper.rb:205:`process_action' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activerecord- 3.2.3 / lib / active_record / rai lties / controller_runtime.rb:18:在`process_action' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor /bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/base.rb:121:in`process' 2012-06-01T06:11:53 + 00:00 app [ web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / abstract_controller / rendering.rb:45:in'process' 2012-06-01T06:11:53 +00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_controller / metal.rb:203:在`dispatch' 2012-06 -01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / g ems / actionpack-3.2.3 / lib / action_controller / metal / rack_delegation.rb:14:在`dispatch' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_controller / metal.rb:246:在`block in action'中 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_dispatch / routing / route_set.rb:73:在`call' 2012-06-01T06: 11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_dispatch / routing / route_set.rb:73:在`dispatch' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_dispatch / routing / route_set.rb: 36:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_dispatch / routing / mapper.rb:40:in`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems /旅程-1.0.3 / lib /旅程/ router.rb:68:在`块中通话' 2012-06-01T06:11:53 + 00:00应用程序[ web.1]:vendor / bundle / ruby / 1.9.1 / gems / journey-1.0.3 / lib / journey / router.rb:56:在`each' 2012-06-01T06:11:53 +00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / journey-1.0.3 / lib / journey / router.rb:56:`call' 2012-06 -01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_dispatch / routing / route_set.rb:600:in`call ' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / sass-3.1.18 / lib / sass / plugin / rack .rb:54:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / warden-1.1.1 /lib/warden/manager.rb:35:in`block in call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 /gems/warden-1.1.1/lib/warden/manager.rb:34:in`catch' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle /ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:34:in`call' 2012-06-01T06:11:53 + 00:00 app [web。 1]:vendor / bundle / ruby / 1.9.1 / gems / rack-1.4.1 / lib / rack / etag.rb:23:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_dispatch / middleware / best_standards_support.rb:17:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / rack-1.4.1 / lib / rack / conditionalget.rb:25:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2。 3 / lib / action_dispatch / middleware / head.rb:14:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9。 1 / gems / actionpack-3.2.3 / lib / action_dispatch / middleware / params_parser.rb:21:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]: vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_dispatch / middleware / flash.rb:242:在`call' 2012-06-01T06:11:53 + 00: 00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / rack-1.4.1 / lib / rack / session / abstract / id.rb:205:`context' 2012- 06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / rack-1.4.1 / lib / rack / session / abstract / id.rb:200:在`c全部' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_dispatch / middleware / cookies.rb:338:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / dragonfly-0.9。 12 / lib / dragonfly / cookie_monster.rb:9:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activerecord-3.2.3 / lib / active_record / query_cache.rb:64:在`call'中 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activerecord-3.2.3 / lib / active_record / connection_adapters / abstract / connection_pool.rb:467:in`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_dispatch / middleware / callbacks.rb:28:在`block in call'中 2012-06- 01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activesupport-3.2.3 / lib / active_support / callbacks.rb:405:in _run__2527400173333692808__call__757062616006589650__callbacks' 2012-06-01T06:11:53 + 0 0:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activesupport-3.2.3 / lib / active_support / callbacks.rb:405:'__run_callback' 2012-06- 01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activesupport-3.2.3 / lib / active_support / callbacks.rb:385:in _run_call_callbacks' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activesupport-3.2.3 / lib / active_support / callbacks.rb:81:在'run_callbacks' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_dispatch /中间件/ callbacks.rb:27:在`call'中 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack- 3.2.3 / lib / action_dispatch / middleware / remote_ip.rb:31:在`call'中 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_dispatch / middleware / debug_exceptions.rb:16:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1 ]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_d ispatch / middleware / show_exceptions.rb:56:`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / railties-3.2.3 / lib / rails / rack / logger.rb:26:在`call_app' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / railties-3.2.3 / lib / rails / rack / logger.rb:16:在`call' 2012-06-01T06:11:53 + 00:00 app [web .1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_dispatch / middleware / request_id.rb:22:在`call' 2012-06-01T06:11: 53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / rack-1.4.1 / lib / rack / methodoverride.rb:21:`call' 2012- 06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / rack-1.4.1 / lib / rack / runtime.rb:17:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / activesupport-3.2.3 / lib / active_support / cache / strategy / local_cache.rb:72:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / rack-1.4。 1 / lib / rack / lock.rb:15:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / actionpack-3.2.3 / lib / action_dispatch / middleware / static.rb:62:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / dragonfly-0.9.12 / lib / dragonfly /中间件.rb:13:在`call' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / rack-cache- 1.2 / lib / rack / cache / context.rb:136:在'forward'中 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9。 1 / gems / rack-cache-1.2 / lib / rack / cache / context.rb:185:在`lookup' 2012-06-01T06:11:53 + 00:00 app [web.1]: vendor / bundle / ruby / 1.9.1 / gems / rack-cache-1.2 / lib / rack / cache / context.rb:245:在`fetch' 2012-06-01T06:11:53 + 00: 00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / rack-cache-1.2 / lib / rack / cache / context.rb:66:`call!' 2012-06 -01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / rack-cache-1.2 / lib / rack / cache / context.rb:51:in`call ' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundl e / ruby / 1.9.1 / gems / railties-3.2.3 / lib / rails / engine.rb:479:在`call' 2012-06-01T06:11:53 + 00:00 app [web .1]:vendor / bundle / ruby / 1.9.1 / gems / railties-3.2.3 / lib / rails / application.rb:220:在`call' 2012-06-01T06:11:53+ 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / rack-1.4.1 / lib / rack / content_length.rb:14:`call' 2012-06- 01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / railties-3.2.3 / lib / rails / rack / log_tailer.rb:14: 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / thin-1.3.1 / lib / thin / connection.rb: 80:在`block in pre_process' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / thin-1.3.1 / lib / thin / connection.rb:78:在'catch' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / thin-1.3.1 / lib / thin / connection.rb:78:在`pre_process'中 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / thin-1.3.1 / lib / thin / connection.rb:53:在`process' 2012-06-01 T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / thin-1.3.1 / lib / thin / connection.rb:38:在`receive_data' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / eventmachine-0.12.10 / lib / eventmachine.rb:256: run_machine' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / eventmachine-0.12.10 / lib / eventmachine.rb: 256:在`run' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / thin-1.3.1 / lib /瘦/后端/ base.rb:61:在`开始' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / thin-1.3.1 / lib / thin / server.rb:159:在`start' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / rack-1.4.1 / lib / rack / handler / thin.rb:13:在`run' 2012-06-01T06:11:53 + 00:00 app [web.1 ]:vendor / bundle / ruby / 1.9.1 / gems / rack-1.4.1 / lib / rack / server.rb:265:在`start' 2012-06-01T06:11:53 + 00: 00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / railties-3.2.3 / lib / rails / commands / server。 rb:70:在`start' 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / railties-3.2.3 / 2012-06-01T06:11:53 + 00:00 app [web.1]:vendor / bundle / ruby / 1.9.1 / gems / railties-3.2.3 / lib / rails / commands.rb:55:在<顶部(必填)>区块中' 2012-06-01T06:11:53 + 00:00应用[网页。 1]:vendor / bundle / ruby / 1.9.1 / gems / railties-3.2.3 / lib / rails / commands.rb:50:在< top(required)>' 2012-06- 01T06:11:53 + 00:00 app [web.1]:script / rails:6:在'require' 2012-06-01T06:11:53 + 00:00 app [web.1]:脚本/导轨:6:在< main>' 2012-06-01T06:11:53 + 00:00 app [web.1]: 2012-06-01T06:11:53 +00:00应用[web.1]: 2012-06-01T06:11:53 + 00:00应用[web.1]:通过ActiveAdmin :: Devise :: SessionsController处理#new as HTML 2012-06-01T06:11:53 + 00:00 app [web.1]:渲染供应商/ bundle / ruby / 1.9.1 / bundler / gems / active_admin-3020d04d5c8f / app / views / active_admin / devise / shared /_links.erb(1.1ms) 2012-06-01T06:11:53 + 00:00 app [web.1]:在layouts / active_admin_logged_out(292.9ms)内渲染供应商/ bundle / ruby / 1.9.1 / bundler / gems / active_admin-3020d04d5c8f / app / views / active_admin / devise / sessions / new.html.erb 2012-06-01T06:11:53 + 00:00 app [web.1]:在456ms内完成500个内部服务器错误 配置/ env / development.rb #不要压缩资产 config.assets.compress = false #展开加载资产的行 config.assets.debug = true 宝石档案 source'https://rubygems.org' ruby'1.9.3' gem'rails','3.2.3'#Bundle edge Rails改为: #gem'rails',:git => 'git://github.com/rails/rails.git' group:development do gem'pg' #gem'sqlite3' end #Gems仅用于资产,默认情况下不需要生产环境中的#。 group:assets do gem'pg' gem'thin' gem'sass-rails','〜> 3.2.3' gem'咖啡栏','〜> 3.2.1' #请参阅https://github.com/sstephenson/execjs#readme了解更多支持的运行时间#gem'therubyracer',:platform => :ruby gem'uglifier','> = 1.0.3' gem'selected-rails' end gem'jquery-rails' gemactiveadmin,:git => git://github.com/gregbell/active_admin.git gemzurb-foundation gemfriendly_id,〜> 4.0.1 gem'simple_form' gem'rack-cache',:require => 'rack / cache' gem'dragonfly','〜> 0.9.12' gem'fog' gem'rmagick' gem'tinymce-rails' 更新: 我在我的gemfile上使用 ruby'1.9.3' gem'rails','3.2 .5' 但是错误记录有 vendor / bundle / ruby / 1.9.1 / gems / 解决方案试试这两件事: config / environments / production.rb config.assets.compile = true 在您的gem文件中 gemactiveadmin,:git => git://github.com/gregbell/active_admin.git 和 bundle install 推送到heroku并看到它的作品 I am having problems understanding the error logs. I am using Active Admin, all works well on my local server but when i push to Heroku i can not login or use active admin. I am a little stuck as to what the problems is. The front end of my wife works but when i try to login for the first time i get this error.I have run heroku run rake db:migrateApplication.rb config.assets.initialize_on_precompile = falseroutes.rb break if ARGV.join.include? 'assets:precompile'Heroku logs2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/responder.rb:153:in `respond'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/responder.rb:146:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/mime_responds.rb:239:in `respond_with'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/controllers/devise/sessions_controller.rb:9:in `new'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/base.rb:167:in `process_action'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/rendering.rb:10:in `process_action'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:436:in `_run__2148348972389484395__process_action__581573497384646045__callbacks'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in `__run_callback'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:81:in `run_callbacks'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/callbacks.rb:17:in `process_action'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/rescue.rb:29:in `process_action'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/notifications.rb:123:in `block in instrument'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/notifications.rb:123:in `instrument'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/params_wrapper.rb:205:in `process_action'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/base.rb:121:in `process'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/rendering.rb:45:in `process'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal.rb:203:in `dispatch'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal.rb:246:in `block in action'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:73:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:36:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/routing/mapper.rb:40:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/journey-1.0.3/lib/journey/router.rb:68:in `block in call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/journey-1.0.3/lib/journey/router.rb:56:in `each'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/journey-1.0.3/lib/journey/router.rb:56:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:600:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/sass-3.1.18/lib/sass/plugin/rack.rb:54:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:35:in `block in call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:34:in `catch'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:34:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/etag.rb:23:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/conditionalget.rb:25:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/head.rb:14:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/flash.rb:242:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in `context'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/cookies.rb:338:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/dragonfly-0.9.12/lib/dragonfly/cookie_monster.rb:9:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/query_cache.rb:64:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:467:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in `_run__2527400173333692808__call__757062616006589650__callbacks'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in `__run_callback'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:81:in `run_callbacks'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/callbacks.rb:27:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/rack/logger.rb:26:in `call_app'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/rack/logger.rb:16:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/request_id.rb:22:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/static.rb:62:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/dragonfly-0.9.12/lib/dragonfly/middleware.rb:13:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:479:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/application.rb:220:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/rack/log_tailer.rb:14:in `call'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:80:in `block in pre_process'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:78:in `catch'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:78:in `pre_process'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:53:in `process'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:38:in `receive_data'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/handler/thin.rb:13:in `run'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:265:in `start'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands/server.rb:70:in `start'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:55:in `block in <top (required)>'2012-06-01T06:11:53+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>'2012-06-01T06:11:53+00:00 app[web.1]: script/rails:6:in `require'2012-06-01T06:11:53+00:00 app[web.1]: script/rails:6:in `<main>'2012-06-01T06:11:53+00:00 app[web.1]: 2012-06-01T06:11:53+00:00 app[web.1]: 2012-06-01T06:11:53+00:00 app[web.1]: Processing by ActiveAdmin::Devise::SessionsController#new as HTML2012-06-01T06:11:53+00:00 app[web.1]: Rendered vendor/bundle/ruby/1.9.1/bundler/gems/active_admin-3020d04d5c8f/app/views/active_admin/devise/shared/_links.erb (1.1ms)2012-06-01T06:11:53+00:00 app[web.1]: Rendered vendor/bundle/ruby/1.9.1/bundler/gems/active_admin-3020d04d5c8f/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (292.9ms)2012-06-01T06:11:53+00:00 app[web.1]: Completed 500 Internal Server Error in 456msConfig/env/development.rb # Do not compress assets config.assets.compress = false # Expands the lines which load the assets config.assets.debug = trueGem Filesource 'https://rubygems.org'ruby '1.9.3'gem 'rails', '3.2.3'# Bundle edge Rails instead:# gem 'rails', :git => 'git://github.com/rails/rails.git'group :development do gem 'pg' #gem 'sqlite3'end# Gems used only for assets and not required# in production environments by default.group :assets do gem 'pg' gem 'thin' gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' # See https://github.com/sstephenson/execjs#readme for more supported runtimes # gem 'therubyracer', :platform => :ruby gem 'uglifier', '>= 1.0.3' gem 'chosen-rails'endgem 'jquery-rails'gem "activeadmin", :git => "git://github.com/gregbell/active_admin.git"gem "zurb-foundation"gem "friendly_id", "~> 4.0.1"gem 'simple_form'gem 'rack-cache', :require => 'rack/cache'gem 'dragonfly', '~>0.9.12'gem "fog"gem 'rmagick'gem 'tinymce-rails'Update:I on my gemfile i am now using ruby '1.9.3'gem 'rails', '3.2.5'but the error log has vendor/bundle/ruby/1.9.1/gems/Is heroku not supposed to choose Ruby 1.9.3 for me? 解决方案 Try this two things:config/environments/production.rb config.assets.compile = true in your gem filegem "activeadmin", :git => "git://github.com/gregbell/active_admin.git"and bundle installpush to heroku and see it works 这篇关于Active Admin Gem - Rails 3.2.3,Heroku错误日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-24 15:15