Ruby on Rails - devise error with heroku - ruby-on-rails

Everything was fine when I use localhost:3000, and I can visit localhost:3000/users/sign_in.
However, after I push to heroku, I can't visit this page and other pages which were created by devise and show this
Here is my Gemfile
source 'https://rubygems.org'
gem 'rails', '4.1.8'
gem 'pg'
gem 'rails_12factor', group: :production
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'spring', group: :development
gem 'devise'
gem 'bcrypt'
gem 'bootstrap-sass', '~> 3.3.5'
gem 'rails_bootstrap_navbar'
Here is heroku log
2015-07-16T16:35:48.081619+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:822:in `exec_no_cache'
2015-07-16T16:35:48.081621+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql/database_statements.rb:137:in `exec_query'
2015-07-16T16:35:48.081622+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:976:in `column_definitions'
2015-07-16T16:35:48.081623+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql/schema_statements.rb:187:in `columns'
2015-07-16T16:35:48.081625+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/schema_cache.rb:93:in `block in prepare_default_proc'
2015-07-16T16:35:48.081626+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/schema_cache.rb:44:in `yield'
2015-07-16T16:35:48.081627+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/schema_cache.rb:44:in `columns'
2015-07-16T16:35:48.081629+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/model_schema.rb:214:in `columns'
2015-07-16T16:35:48.081630+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/model_schema.rb:223:in `columns_hash'
2015-07-16T16:35:48.081632+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/inheritance.rb:180:in `subclass_from_attributes?'
2015-07-16T16:35:48.081633+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/inheritance.rb:23:in `new'
2015-07-16T16:35:48.081634+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.5.1/lib/devise/models/registerable.rb:20:in `new_with_session'
2015-07-16T16:35:48.081640+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/abstract_controller/base.rb:189:in `process_action'
2015-07-16T16:35:48.081642+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2015-07-16T16:35:48.081643+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:113:in `call'
2015-07-16T16:35:48.081641+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/rendering.rb:10:in `process_action'
2015-07-16T16:35:48.081638+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2015-07-16T16:35:48.081649+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:166:in `call'
2015-07-16T16:35:48.081636+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.5.1/app/controllers/devise/registrations_controller.rb:100:in `build_resource'
2015-07-16T16:35:48.081656+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:166:in `call'
2015-07-16T16:35:48.081637+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.5.1/app/controllers/devise/registrations_controller.rb:7:in `new'
2015-07-16T16:35:48.081648+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:229:in `block in halting'
2015-07-16T16:35:48.081644+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:113:in `call'
2015-07-16T16:35:48.081645+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:229:in `block in halting'
2015-07-16T16:35:48.081659+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:166:in `block in halting'
2015-07-16T16:35:48.081647+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:229:in `call'
2015-07-16T16:35:48.081655+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:166:in `block in halting'
2015-07-16T16:35:48.081657+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:166:in `block in halting'
2015-07-16T16:35:48.081662+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:166:in `block in halting'
2015-07-16T16:35:48.081661+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:166:in `call'
2015-07-16T16:35:48.081665+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:149:in `call'
2015-07-16T16:35:48.081663+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:149:in `call'
2015-07-16T16:35:48.081658+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:166:in `call'
2015-07-16T16:35:48.081664+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
2015-07-16T16:35:48.081669+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:86:in `run_callbacks'
2015-07-16T16:35:48.081671+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/abstract_controller/callbacks.rb:19:in `process_action'
2015-07-16T16:35:48.081668+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:86:in `call'
2015-07-16T16:35:48.081667+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
2015-07-16T16:35:48.081672+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/rescue.rb:29:in `process_action'
2015-07-16T16:35:48.081676+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2015-07-16T16:35:48.081673+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
2015-07-16T16:35:48.081674+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/notifications.rb:159:in `block in instrument'
2015-07-16T16:35:48.081677+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/notifications.rb:159:in `instrument'
2015-07-16T16:35:48.081681+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2015-07-16T16:35:48.081678+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2015-07-16T16:35:48.081680+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2015-07-16T16:35:48.081682+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/abstract_controller/base.rb:136:in `process'
2015-07-16T16:35:48.081684+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionview-4.1.8/lib/action_view/rendering.rb:30:in `process'
2015-07-16T16:35:48.081686+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2015-07-16T16:35:48.081685+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal.rb:196:in `dispatch'
2015-07-16T16:35:48.081687+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal.rb:232:in `block in action'
2015-07-16T16:35:48.081689+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/routing/route_set.rb:82:in `call'
2015-07-16T16:35:48.081690+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
2015-07-16T16:35:48.081691+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/routing/route_set.rb:50:in `call'
2015-07-16T16:35:48.081692+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/routing/mapper.rb:45:in `call'
2015-07-16T16:35:48.081693+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/journey/router.rb:73:in `block in call'
2015-07-16T16:35:48.081696+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/journey/router.rb:59:in `call'
2015-07-16T16:35:48.081695+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/journey/router.rb:59:in `each'
2015-07-16T16:35:48.081697+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/routing/route_set.rb:678:in `call'
2015-07-16T16:35:48.081698+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
2015-07-16T16:35:48.081700+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2015-07-16T16:35:48.081701+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2015-07-16T16:35:48.081702+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/etag.rb:23:in `call'
2015-07-16T16:35:48.081707+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/conditionalget.rb:25:in `call'
2015-07-16T16:35:48.081709+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/head.rb:11:in `call'
2015-07-16T16:35:48.081710+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2015-07-16T16:35:48.081711+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/flash.rb:254:in `call'
2015-07-16T16:35:48.081712+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/session/abstract/id.rb:225:in `context'
2015-07-16T16:35:48.081714+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/session/abstract/id.rb:220:in `call'
2015-07-16T16:35:48.081715+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2015-07-16T16:35:48.081716+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/query_cache.rb:36:in `call'
2015-07-16T16:35:48.081717+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
2015-07-16T16:35:48.081728+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2015-07-16T16:35:48.081729+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:82:in `run_callbacks'
2015-07-16T16:35:48.081730+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2015-07-16T16:35:48.081731+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2015-07-16T16:35:48.081733+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2015-07-16T16:35:48.081734+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2015-07-16T16:35:48.081735+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/rack/logger.rb:38:in `call_app'
2015-07-16T16:35:48.081736+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/rack/logger.rb:20:in `block in call'
2015-07-16T16:35:48.081738+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2015-07-16T16:35:48.081739+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/tagged_logging.rb:26:in `tagged'
2015-07-16T16:35:48.081740+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/tagged_logging.rb:68:in `tagged'
2015-07-16T16:35:48.081743+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2015-07-16T16:35:48.081742+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/rack/logger.rb:20:in `call'
2015-07-16T16:35:48.081744+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/methodoverride.rb:21:in `call'
2015-07-16T16:35:48.081746+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/runtime.rb:17:in `call'
2015-07-16T16:35:48.081747+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
2015-07-16T16:35:48.081748+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/static.rb:84:in `call'
2015-07-16T16:35:48.081750+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/sendfile.rb:112:in `call'
2015-07-16T16:35:48.081751+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:514:in `call'
2015-07-16T16:35:48.081752+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application.rb:144:in `call'
2015-07-16T16:35:48.081754+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/lock.rb:17:in `call'
2015-07-16T16:35:48.081755+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/content_length.rb:14:in `call'
2015-07-16T16:35:48.081756+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/handler/webrick.rb:60:in `service'
2015-07-16T16:35:48.081758+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2015-07-16T16:35:48.081759+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2015-07-16T16:35:48.081763+00:00 app[web.1]:
2015-07-16T16:35:48.081760+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2015-07-16T16:35:48.081762+00:00 app[web.1]:
2015-07-16T16:35:51.501741+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=intelligent-madame-5204.herokuapp.com request_id=46eca4a7-c0ce-4dbf-bfb1-651fb7ae201b fwd="180.218.172.11" dyno=web.1 connect=3ms service=5ms status=304 bytes=133
Solution
heroku run rake db:migrate

I think you need to migrate your database.
$ heroku run rake db:migrate --app your_app
This is a common step to forget when when deploying to Heroku.

Related

saving record with active admin on heroku not works

I'm using active_admin in my rails app. When I try to add a new record for the PostCategory model, it doesn't work.
I can add the other models on Heroku but only PostCategory doesn't work.
On my local machine all models can be added, including PostCategory.
Sometimes the log file says 500 internal error.
My heroku logs:
2014-05-25T17:27:30.946410+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:82:in `run_callbacks'
2014-05-25T17:27:30.946411+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activemodel-4.1.0/lib/active_model/validations/callbacks.rb:111:in `run_validations!'
2014-05-25T17:27:30.946413+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activemodel-4.1.0/lib/active_model/validations.rb:317:in `valid?'
2014-05-25T17:27:30.946414+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/validations.rb:70:in `valid?'
2014-05-25T17:27:30.946416+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/validations.rb:77:in `perform_validations'
2014-05-25T17:27:30.946417+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/validations.rb:51:in `save'
2014-05-25T17:27:30.946464+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2014-05-25T17:27:30.946418+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/attribute_methods/dirty.rb:21:in `save'
2014-05-25T17:27:30.946420+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/transactions.rb:268:in `block (2 levels) in save'
2014-05-25T17:27:30.946435+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/transactions.rb:267:in `save'
2014-05-25T17:27:30.946437+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-ad33a0f6c772/lib/active_admin/resource_controller/data_access.rb:160:in `block in save_resource'
2014-05-25T17:27:30.946439+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/core_ext/object/try.rb:45:in `call'
2014-05-25T17:27:30.946440+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/core_ext/object/try.rb:45:in `public_send'
2014-05-25T17:27:30.946441+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/core_ext/object/try.rb:45:in `try'
2014-05-25T17:27:30.946446+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-ad33a0f6c772/lib/active_admin/callbacks.rb:79:in `block (2 levels) in define_active_admin_callbacks'
2014-05-25T17:27:30.946470+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:166:in `call'
2014-05-25T17:27:30.946448+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-ad33a0f6c772/lib/active_admin/resource_controller/data_access.rb:159:in `save_resource'
2014-05-25T17:27:30.946472+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:166:in `call'
2014-05-25T17:27:30.946422+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/transactions.rb:329:in `block in with_transaction_returning_status'
2014-05-25T17:27:30.946450+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-ad33a0f6c772/lib/active_admin/resource_controller/data_access.rb:149:in `block in create_resource'
2014-05-25T17:27:30.946474+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in halting'
2014-05-25T17:27:30.946475+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:229:in `call'
2014-05-25T17:27:30.946476+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:229:in `block in halting'
2014-05-25T17:27:30.946478+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:229:in `call'
2014-05-25T17:27:30.946463+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_controller/metal/rendering.rb:10:in `process_action'
2014-05-25T17:27:30.946461+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/abstract_controller/base.rb:189:in `process_action'
2014-05-25T17:27:30.946466+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:113:in `call'
2014-05-25T17:27:30.946467+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:113:in `call'
2014-05-25T17:27:30.946468+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in halting'
2014-05-25T17:27:30.946471+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in halting'
2014-05-25T17:27:30.946479+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:229:in `block in halting'
2014-05-25T17:27:30.946480+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:166:in `call'
2014-05-25T17:27:30.946484+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in halting'
2014-05-25T17:27:30.946482+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in halting'
2014-05-25T17:27:30.946487+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in halting'
2014-05-25T17:27:30.946489+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:86:in `call'
2014-05-25T17:27:30.946483+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:166:in `call'
2014-05-25T17:27:30.946486+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:166:in `call'
2014-05-25T17:27:30.946493+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_controller/metal/rescue.rb:29:in `process_action'
2014-05-25T17:27:30.946490+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:86:in `run_callbacks'
2014-05-25T17:27:30.946492+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/abstract_controller/callbacks.rb:19:in `process_action'
2014-05-25T17:27:30.946495+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
2014-05-25T17:27:30.946511+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_controller/metal.rb:195:in `dispatch'
2014-05-25T17:27:30.946512+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2014-05-25T17:27:30.946514+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_controller/metal.rb:231:in `block in action'
2014-05-25T17:27:30.946515+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:80:in `call'
2014-05-25T17:27:30.946507+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2014-05-25T17:27:30.946496+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/notifications.rb:159:in `block in instrument'
2014-05-25T17:27:30.946500+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2014-05-25T17:27:30.946502+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/notifications.rb:159:in `instrument'
2014-05-25T17:27:30.946503+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2014-05-25T17:27:30.946505+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2014-05-25T17:27:30.946508+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/abstract_controller/base.rb:136:in `process'
2014-05-25T17:27:30.946510+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionview-4.1.0/lib/action_view/rendering.rb:30:in `process'
2014-05-25T17:27:30.946517+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
2014-05-25T17:27:30.946518+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:48:in `call'
2014-05-25T17:27:30.946520+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/journey/router.rb:71:in `block in call'
2014-05-25T17:27:30.946521+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/journey/router.rb:59:in `each'
2014-05-25T17:27:30.946523+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/journey/router.rb:59:in `call'
2014-05-25T17:27:30.946524+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:676:in `call'
2014-05-25T17:27:30.946525+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
2014-05-25T17:27:30.946527+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2014-05-25T17:27:30.946528+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2014-05-25T17:27:30.946530+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
2014-05-25T17:27:30.946532+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:35:in `call'
2014-05-25T17:27:30.946533+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
2014-05-25T17:27:30.946534+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2014-05-25T17:27:30.946536+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/flash.rb:254:in `call'
2014-05-25T17:27:30.946537+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
2014-05-25T17:27:30.946549+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2014-05-25T17:27:30.946539+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
2014-05-25T17:27:30.946540+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2014-05-25T17:27:30.946542+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/query_cache.rb:36:in `call'
2014-05-25T17:27:30.946543+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
2014-05-25T17:27:30.946545+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2014-05-25T17:27:30.946546+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:82:in `run_callbacks'
2014-05-25T17:27:30.946548+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2014-05-25T17:27:30.946550+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2014-05-25T17:27:30.946551+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2014-05-25T17:27:30.946553+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/rack/logger.rb:38:in `call_app'
2014-05-25T17:27:30.946554+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/rack/logger.rb:20:in `block in call'
2014-05-25T17:27:30.946556+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2014-05-25T17:27:30.946557+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/tagged_logging.rb:26:in `tagged'
2014-05-25T17:27:30.946562+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/tagged_logging.rb:68:in `tagged'
2014-05-25T17:27:30.946586+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/rack/logger.rb:20:in `call'
2014-05-25T17:27:30.946587+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-05-25T17:27:30.946590+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-05-25T17:27:30.946589+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-05-25T17:27:30.946591+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
2014-05-25T17:27:30.946593+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/static.rb:64:in `call'
2014-05-25T17:27:30.946594+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
2014-05-25T17:27:30.946595+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/engine.rb:514:in `call'
2014-05-25T17:27:30.946597+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/application.rb:144:in `call'
2014-05-25T17:27:30.946599+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2014-05-25T17:27:30.946600+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2014-05-25T17:27:30.946602+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2014-05-25T17:27:30.946603+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2014-05-25T17:27:30.946605+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2014-05-25T17:27:30.946606+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2014-05-25T17:27:30.946618+00:00 app[web.1]:
2014-05-25T17:27:30.946619+00:00 app[web.1]:
Gem File
gem 'rails', '4.1.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', group: :development
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring', group: :development
gem 'activeadmin', github: 'gregbell/active_admin'
gem 'devise'
gem 'rails_12factor', group: :production
gem 'pg', group: :production
gem 'debugger'
gem 'pry', group: :development
post_category.rb :
ActiveAdmin.register PostCategory do
permit_params :title
index do
selectable_column
id_column
column :title
column :created_at
column :slug_url
actions
end
filter :created_at
form do |f|
f.inputs "PostCategory Details" do
f.input :title
end
f.actions
end
controller do
defaults :finder => :find_by_slug_url
end
end
see PostCategory on heroku console
PostCategory(id: integer, title: string, created_at: datetime, updated_at: datetime, slug_url: string)
PostCategory model :
class PostCategory < ActiveRecord::Base
validates_uniqueness_of :slug_url
before_save :before_save
private
def before_save
self.slug_url = self.title.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')
end
public
def to_param # overridden
slug_url
end
end
so you have multi problems:
change def before_save into something else this is rails method don't use the same name also make a validation that title is not empty/nil(present?) before try use downcase on it otherwise you will get error (undefined method downcase for nil:nilClass)
i think that the first time you tried it works if you will query you will see that your database contain 1 record if you will try submit it again it will not work due to your validation validates_uniqueness_of :slug_url

Heroku 500 error

In production.rb I have the following single line for config.action_mailer..
config.action_mailer.default_url_options = { :host => 'secret-brushlands- 1375.herokuapp.com' }
In Development.rb I have (this seems to work BTW)
config.action_mailer.perform_deliveries = true
config.action_mailer.default_url_options = { :host => 'localhost:3000'}
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {:address => "localhost", :port => 1025}
In Environment.rb I have:
ActionMailer::Base.smtp_settings = {
:address => 'smtp.sendgrid.net',
:port => '587',
:authentication => :plain,
:user_name => ENV['sendgrid user'],
:password => ENV['sendgrid password'],
:domain => 'heroku.com',
:enable_starttls_auto => true
}
We're sorry, but something went wrong.
For some reason I am getting this error with my heroku app (this is only
happening with the users portion when I try to sign_up, the other model
functionality on postgresql seems to be cool) - I have done a heroku
pg:reset
heroku run rake:db:migrate, etc.. but to no avail.
Here is my gem file:
source 'https://rubygems.org'
gem 'rails', '4.1.0'
gem 'pg'
gem 'foundation-rails'
gem 'rails_12factor', group: :production
gem 'devise'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'tzinfo'
gem 'tzinfo-data'
And here is the heroku log:
2014-04-24T17:34:53.598955+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/transactions.rb:329:in `block in
with_transact
ion_returning_status'
2014-04-24T17:34:53.598952+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/attribute_methods/dirty.rb:21:in
`save'
2014-04-24T17:34:53.598961+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/connection_adapters/abstract/database_statemen
ts.rb:211:in `transaction'
2014-04-24T17:34:53.598957+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/connection_adapters/abstract/database_statemen
ts.rb:211:in `block in transaction'
2014-04-24T17:34:53.598959+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/connection_adapters/abstract/database_statemen
ts.rb:219:in `within_new_transaction'
2014-04-24T17:34:53.599212+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/transactions.rb:326:in
`with_transaction_retur
ning_status'
2014-04-24T17:34:53.599214+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/transactions.rb:268:in `block in save'
2014-04-24T17:34:53.599209+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/transactions.rb:208:in `transaction'
2014-04-24T17:34:53.599215+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/transactions.rb:283:in
`rollback_active_record
_state!'
2014-04-24T17:34:53.599228+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:229:in `block in
halting'
2014-04-24T17:34:53.599218+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/dev
ise-3.2.4/app/controllers/devise/registrations_controller.rb:15:in
`create'
2014-04-24T17:34:53.599223+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/rendering.rb:10:in
`process_action'
2014-04-24T17:34:53.599220+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/implicit_render.rb:4:in
`send_action'
2014-04-24T17:34:53.599231+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:229:in `block in
halting'
2014-04-24T17:34:53.599217+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/transactions.rb:267:in `save'
2014-04-24T17:34:53.599224+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/abstract_controller/callbacks.rb:20:in `block in
process_actio
n'
2014-04-24T17:34:53.599230+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:229:in `call'
2014-04-24T17:34:53.599233+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `call'
2014-04-24T17:34:53.599227+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:113:in `call'
2014-04-24T17:34:53.599221+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/abstract_controller/base.rb:189:in `process_action'
2014-04-24T17:34:53.599225+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:113:in `call'
2014-04-24T17:34:53.599234+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in
halting'
2014-04-24T17:34:53.599237+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in
halting'
2014-04-24T17:34:53.599239+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `call'
2014-04-24T17:34:53.599236+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `call'
2014-04-24T17:34:53.599258+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `call'
2014-04-24T17:34:53.599262+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:149:in `block in
halting_and_co
nditional'
2014-04-24T17:34:53.599260+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:149:in `call'
2014-04-24T17:34:53.599263+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:149:in `call'
2014-04-24T17:34:53.599256+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in
halting'
2014-04-24T17:34:53.599266+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:86:in `call'
2014-04-24T17:34:53.599265+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:149:in `block in
halting_and_co
nditional'
2014-04-24T17:34:53.599276+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/abstract_controller/callbacks.rb:19:in
`process_action'
2014-04-24T17:34:53.599259+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in
halting'
2014-04-24T17:34:53.599268+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:86:in `run_callbacks'
2014-04-24T17:34:53.599278+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/rescue.rb:29:in
`process_action'
2014-04-24T17:34:53.599282+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/notifications/instrumenter.rb:20:in
`instrum
ent'
2014-04-24T17:34:53.599286+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/params_wrapper.rb:250:in
`process_acti
on'
2014-04-24T17:34:53.599284+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/notifications.rb:159:in `instrument'
2014-04-24T17:34:53.599281+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/notifications.rb:159:in `block in
instrument
'
2014-04-24T17:34:53.599279+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/instrumentation.rb:31:in
`block in pro
cess_action'
2014-04-24T17:34:53.599322+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/railties/controller_runtime.rb:18:in
`process_
action'
2014-04-24T17:34:53.599325+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionview-4.1.0/lib/action_view/rendering.rb:30:in `process'
2014-04-24T17:34:53.599285+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/instrumentation.rb:30:in
`process_acti
on'
2014-04-24T17:34:53.599324+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/abstract_controller/base.rb:136:in `process'
2014-04-24T17:34:53.599327+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal.rb:195:in `dispatch'
2014-04-24T17:34:53.599332+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:80:in `call'
2014-04-24T17:34:53.599338+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/routing/mapper.rb:45:in `call'
2014-04-24T17:34:53.599341+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/journey/router.rb:71:in `block in
call'
2014-04-24T17:34:53.599330+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal.rb:231:in `block in action'
2014-04-24T17:34:53.599329+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/rack_delegation.rb:13:in
`dispatch'
2014-04-24T17:34:53.599334+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
2014-04-24T17:34:53.599345+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/journey/router.rb:59:in `call'
2014-04-24T17:34:53.599336+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:48:in `call'
2014-04-24T17:34:53.599343+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/journey/router.rb:59:in `each'
2014-04-24T17:34:53.599347+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:676:in `call'
2014-04-24T17:34:53.599355+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/war
den-1.2.3/lib/warden/manager.rb:34:in `catch'
2014-04-24T17:34:53.599357+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/war
den-1.2.3/lib/warden/manager.rb:34:in `call'
2014-04-24T17:34:53.599363+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/head.rb:11:in `call'
2014-04-24T17:34:53.599353+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/war
den-1.2.3/lib/warden/manager.rb:35:in `block in call'
2014-04-24T17:34:53.599359+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/etag.rb:23:in `call'
2014-04-24T17:34:53.599369+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
2014-04-24T17:34:53.599361+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/conditionalget.rb:35:in `call'
2014-04-24T17:34:53.599367+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/flash.rb:254:in `call'
2014-04-24T17:34:53.599370+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
2014-04-24T17:34:53.599365+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/params_parser.rb:27:in
`call'
2014-04-24T17:34:53.599376+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/connection_adapters/abstract/connection_pool.r
b:621:in `call'
2014-04-24T17:34:53.599372+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2014-04-24T17:34:53.599374+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/query_cache.rb:36:in `call'
2014-04-24T17:34:53.599389+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in
`call'
2014-04-24T17:34:53.599380+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:82:in `run_callbacks'
2014-04-24T17:34:53.599384+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2014-04-24T17:34:53.599382+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2014-04-24T17:34:53.599378+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block
in call'
2014-04-24T17:34:53.599391+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rai
lties-4.1.0/lib/rails/rack/logger.rb:38:in `call_app'
2014-04-24T17:34:53.599386+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/debug_exceptions.rb:17:in
`call'
2014-04-24T17:34:53.599393+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rai
lties-4.1.0/lib/rails/rack/logger.rb:20:in `block in call'
2014-04-24T17:34:53.599398+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/tagged_logging.rb:26:in `tagged'
2014-04-24T17:34:53.599396+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/tagged_logging.rb:68:in `block in
tagged'
2014-04-24T17:34:53.599440+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-04-24T17:34:53.599488+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-04-24T17:34:53.599433+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-04-24T17:34:53.599414+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rai
lties-4.1.0/lib/rails/rack/logger.rb:20:in `call'
2014-04-24T17:34:53.599400+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/tagged_logging.rb:68:in `tagged'
2014-04-24T17:34:53.599493+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/static.rb:64:in `call'
2014-04-24T17:34:53.599491+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/cache/strategy/local_cache_middleware.rb:26:
in `call'
2014-04-24T17:34:53.599495+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/sendfile.rb:112:in `call'
2014-04-24T17:34:53.599497+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rai
lties-4.1.0/lib/rails/engine.rb:514:in `call'
2014-04-24T17:34:53.599499+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rai
lties-4.1.0/lib/rails/application.rb:144:in `call'
2014-04-24T17:34:53.599501+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/lock.rb:17:in `call'
2014-04-24T17:34:53.599503+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2014-04-24T17:34:53.599502+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/content_length.rb:14:in `call'
2014-04-24T17:34:53.599506+00:00 app[web.1]:
vendor/ruby-2.0.0/lib/ruby/2.0.0/
webrick/httpserver.rb:94:in `run'
2014-04-24T17:34:53.599505+00:00 app[web.1]:
vendor/ruby-2.0.0/lib/ruby/2.0.0/
webrick/httpserver.rb:138:in `service'
2014-04-24T17:34:53.599509+00:00 app[web.1]:
2014-04-24T17:34:53.599508+00:00 app[web.1]:
vendor/ruby-2.0.0/lib/ruby/2.0.0/
webrick/server.rb:295:in `block in start_thread'
2014-04-24T17:34:53.599510+00:00 app[web.1]:
2014-04-24T17:34:53.588804+00:00 app[web.1]:
2014-04-24T17:34:53.588813+00:00 app[web.1]: Sent mail to
tstevens_21#earthlink.
net (66.7ms)
2014-04-24T17:34:53.595347+00:00 app[web.1]: Completed 500 Internal
Server Error
in 389ms
2014-04-24T17:34:53.600317+00:00 heroku[router]: at=info method=POST
path=/users
host=secret-brushlands-1375.herokuapp.com
request_id=052e3b18-a726-49ae-b816-1b
b5b13c8367 fwd="216.40.153.100" dyno=web.1 connect=3ms service=408ms
status=500
bytes=1754
I am using Devise, and I have installed SendGrid on Heroku. Haven't seen
the email confirmation yet. Any help appreciated.
Thank you,
In the config/environment.rb file, change the configuration of smtp_settings as below:
ActionMailer::Base.smtp_settings = {
:address => 'smtp.sendgrid.net',
:port => '587',
:authentication => :plain,
:user_name => ENV['SENDGRID_USERNAME'], ## Refer to key SENDGRID_USERNAME
:password => ENV['SENDGRID_PASSWORD'], ## Refer to key SENDGRID_PASSWORD
:domain => 'heroku.com',
:enable_starttls_auto => true
}
After this add the environment variables SENDGRID_USERNAME and SENDGRID_PASSWORD in heroku environment by running:
heroku addons:add sendgrid:starter

Heroku does not work

I have an error on heroku
"We're sorry, but something went wrong."
heroku logs
2014-03-26T11:43:11.954664+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.0.4/lib/rails/rack/logger.rb:38:in `call_app'
2014-03-26T11:43:11.955547+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/abstract_controller/rendering.rb:120:in `render_to_body'
2014-03-26T11:43:11.955547+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/rendering.rb:33:in `render_to_body'
2014-03-26T11:43:11.954860+00:00 app[web.1]: vendor/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
2014-03-26T11:43:11.954860+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2014-03-26T11:43:11.954664+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-03-26T11:43:11.955547+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/streaming.rb:219:in `_render_template'
2014-03-26T11:43:11.955259+00:00 app[web.1]:
2014-03-26T11:43:11.955547+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/renderers.rb:26:in `render_to_body'
2014-03-26T11:43:11.954664+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/tagged_logging.rb:68:in `tagged'
2014-03-26T11:43:11.954860+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2014-03-26T11:43:11.955547+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/abstract_controller/rendering.rb:97:in `render'
2014-03-26T11:43:11.955547+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/rendering.rb:16:in `render'
2014-03-26T11:43:11.955547+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
2014-03-26T11:43:11.954860+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
2014-03-26T11:43:11.954860+00:00 app[web.1]: vendor/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
2014-03-26T11:43:11.955259+00:00 app[web.1]:
2014-03-26T11:43:11.956270+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/rendering.rb:10:in `process_action'
2014-03-26T11:43:11.955924+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
2014-03-26T11:43:11.955924+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/core_ext/benchmark.rb:12:in `ms'
2014-03-26T11:43:11.955924+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/instrumentation.rb:41:in `block in render'
2014-03-26T11:43:11.955259+00:00 app[web.1]: ):
2014-03-26T11:43:11.954860+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.0.4/lib/rails/engine.rb:511:in `call'
2014-03-26T11:43:11.954664+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-03-26T11:43:11.954860+00:00 app[web.1]: vendor/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
2014-03-26T11:43:11.955259+00:00 app[web.1]: ActionView::MissingTemplate (Missing template static_pages/home, application/home with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee, :haml]}. Searched in:
2014-03-26T11:43:11.955924+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
2014-03-26T11:43:11.956773+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2014-03-26T11:43:11.956270+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
2014-03-26T11:43:11.956270+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/callbacks.rb:403:in `_run__174253647150912787__process_action__callbacks'
2014-03-26T11:43:11.955924+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/instrumentation.rb:40:in `render'
2014-03-26T11:43:11.955924+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/abstract_controller/base.rb:189:in `process_action'
2014-03-26T11:43:11.956270+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
2014-03-26T11:43:11.954664+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2014-03-26T11:43:11.955259+00:00 app[web.1]:
2014-03-26T11:43:11.956270+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2014-03-26T11:43:11.956773+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal.rb:195:in `dispatch'
2014-03-26T11:43:11.956945+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/routing/route_set.rb:48:in `call'
2014-03-26T11:43:11.956270+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/notifications.rb:159:in `instrument'
2014-03-26T11:43:11.956270+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/abstract_controller/callbacks.rb:17:in `process_action'
2014-03-26T11:43:11.956773+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/abstract_controller/rendering.rb:44:in `process'
2014-03-26T11:43:11.955924+00:00 app[web.1]: vendor/ruby-2.1.1/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
2014-03-26T11:43:11.955547+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_view/renderer/renderer.rb:42:in `render_template'
2014-03-26T11:43:11.956945+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in `call'
2014-03-26T11:43:11.956773+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal.rb:231:in `block in action'
2014-03-26T11:43:11.956945+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/journey/router.rb:71:in `block in call'
2014-03-26T11:43:11.956270+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/notifications.rb:159:in `block in instrument'
2014-03-26T11:43:11.956945+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/journey/router.rb:59:in `call'
2014-03-26T11:43:11.956270+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/callbacks.rb:80:in `run_callbacks'
2014-03-26T11:43:11.956773+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2014-03-26T11:43:11.954860+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/static.rb:64:in `call'
2014-03-26T11:43:11.955924+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
2014-03-26T11:43:11.957387+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/cookies.rb:486:in `call'
2014-03-26T11:43:11.957387+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
2014-03-26T11:43:11.957387+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
2014-03-26T11:43:11.956945+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
2014-03-26T11:43:11.957387+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2014-03-26T11:43:11.956773+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/routing/route_set.rb:80:in `call'
2014-03-26T11:43:11.956945+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/journey/router.rb:59:in `each'
2014-03-26T11:43:11.956773+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2014-03-26T11:43:11.957387+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2014-03-26T11:43:11.957615+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2014-03-26T11:43:11.957615+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2014-03-26T11:43:11.956945+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
2014-03-26T11:43:11.957615+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/tagged_logging.rb:26:in `tagged'
2014-03-26T11:43:11.956945+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/routing/route_set.rb:674:in `call'
2014-03-26T11:43:11.955924+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
2014-03-26T11:43:11.955924+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
2014-03-26T11:43:11.958055+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/static.rb:64:in `call'
2014-03-26T11:43:11.958055+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
2014-03-26T11:43:11.958055+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.0.4/lib/rails/engine.rb:511:in `call'
2014-03-26T11:43:11.958055+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.0.4/lib/rails/application.rb:97:in `call'
2014-03-26T11:43:11.957387+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/query_cache.rb:36:in `call'
2014-03-26T11:43:11.957387+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
2014-03-26T11:43:11.956945+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/flash.rb:241:in `call'
2014-03-26T11:43:11.956945+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2014-03-26T11:43:11.958307+00:00 app[web.1]:
2014-03-26T11:43:11.957615+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/tagged_logging.rb:68:in `tagged'
2014-03-26T11:43:11.957615+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.0.4/lib/rails/rack/logger.rb:20:in `call'
2014-03-26T11:43:11.957387+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2014-03-26T11:43:11.957615+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.0.4/lib/rails/rack/logger.rb:20:in `block in call'
2014-03-26T11:43:11.956270+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/rescue.rb:29:in `process_action'
2014-03-26T11:43:11.956773+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2014-03-26T11:43:11.958055+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2014-03-26T11:43:11.958055+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-03-26T11:43:11.958307+00:00 app[web.1]:
2014-03-26T11:43:11.956773+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/abstract_controller/base.rb:136:in `process'
2014-03-26T11:43:11.956773+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
2014-03-26T11:43:11.958055+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2014-03-26T11:43:11.958055+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-03-26T11:43:11.958055+00:00 app[web.1]: vendor/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
2014-03-26T11:43:11.958055+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2014-03-26T11:43:11.957387+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/callbacks.rb:373:in `_run__2996628356594363701__call__callbacks'
2014-03-26T11:43:11.957387+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/callbacks.rb:80:in `run_callbacks'
2014-03-26T11:43:11.957615+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2014-03-26T11:43:11.957615+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.0.4/lib/rails/rack/logger.rb:38:in `call_app'
2014-03-26T11:43:11.957615+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.0.4/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-03-26T11:43:11.957615+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-03-26T11:43:11.958307+00:00 app[web.1]: vendor/ruby-2.1.1/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
2014-03-26T11:43:11.958307+00:00 app[web.1]: vendor/ruby-2.1.1/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
2014-03-26T11:43:11.959400+00:00 heroku[router]: at=info method=GET path=/ host=dpm-app.herokuapp.com request_id=8cfcd0b0-fd95-4698-b773-92420b3791fb fwd="159.224.13.90" dyno=web.1 connect=3ms service=25ms status=500 bytes=1543
my gemfile
ruby '2.1.1'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.4'
gem 'bootstrap-sass', '~> 3.1.1.0'
# Use postgresql as the database for Active Record
gem 'pg', '0.15.1'
group :development, :test do
gem 'rspec-rails', '2.13.1'
end
group :test do
gem 'selenium-webdriver', '2.35.1'
gem 'capybara', '2.1.0'
end
# Use SCSS for stylesheets
gem 'sass-rails', '4.0.2'
gem 'haml', '~> 4.0.5'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '2.1.1'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '4.0.1'
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails', '3.0.4'
# Turbolinks makes following links in your web application faster.
gem 'turbolinks', '1.1.1'
# Build JSON APIs with ease.
gem 'jbuilder', '1.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '0.3.20',require: false
end
group :production do
gem 'rails_12factor', '0.0.2'
end
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
on local server all works.
if you need some more logs, just ask
thanks for your help.
ActionView::MissingTemplate (Missing template static_pages/home, application/home with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee, :haml]}
You need to have a .html.erb page at views/static_pages/home.html.erb
If your local server works, it could be an issue with precompilation. You should run rake assets:precompile RAILS_ENV=production before pushing to Heroku, to see if you're referencing something incorrectly

Active Admin Gem - Rails 3.2.3, Heroku Error logs

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:migrate
Application.rb
config.assets.initialize_on_precompile = false
routes.rb
break if ARGV.join.include? 'assets:precompile'
Heroku logs
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: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/rai
lties/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 HTML
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/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 456ms
Config/env/development.rb
# Do not compress assets
config.assets.compress = false
# Expands the lines which load the assets
config.assets.debug = true
Gem File
source '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'
end
gem '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 file
gem "activeadmin", :git => "git://github.com/gregbell/active_admin.git"
and bundle install
push to heroku and see it works
Move gem 'sass-rails', '~> 3.2.3' and gem 'pg' out of the assets group, bundle and try it again.
I would do a mandatory rake assets:precompile RAILS_ENV=production
and add the public/assets updates to my commit.
If ever you want to rebuild your assets, just rm -rf public/assets
and run the asset precompile command again.
You can git rm public/assets --cached -r
and
git add public/assets
Do a commit and push to heroku.
I'm just guessing that you haven't run your migrations since the pg gem is tucked away in your assets group. You'd likely have gotten an error upon issuing heroku run rake db:migrate if you tried to run them under these conditions.
Also, I would advise putting your thin gem in production or global environment. Make sure you have a Procfile, otherwise heroku will use webrick.
Need to add this to production.rb
config.assets.precompile += %w( active_admin.css active_admin.js active_admin/print.css)
I got very similar error messages when I forgot to run $ heroku run rake db:migrate. I created a new Family model and set the root of the app to a family#show page in development. I got the same cryptic error message that you got when I deployed to Heroku and was able to solve it by running the migrations in the production database and creating a Family object in the console.

Can't login using Devise on Heroku

I recently pushed my first app to heroku using their guide. (https://devcenter.heroku.com/articles/rails3) Everything went fine considering the push. Now I visited my app and tried to register, now the error 500 page turns up from my public folder every time I try to register or login.
The app currently only consists of my gem dependencies.
gem 'devise'
gem 'haml'
gem 'cancan'
gem 'easy_roles'
gem 'paperclip'
gem 'therubyracer'
gem 'activeadmin'
gem 'formtastic'
If i get the heroku logs:
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/validations.rb:50:in `save'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/attribute_methods/dirty.rb:22:in `save'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:241:in `block (2 levels) in save'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
2012-04-26T16:03:15+00:00 heroku[router]: POST cold-mist-6471.herokuapp.com/users/sign_in dyno=web.1 queue=0 wait=0ms service=224ms status=500 bytes=643
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/lib/devise/models/trackable.rb:26:in `update_tracked_fields!'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:190:in `transaction'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:208:in `transaction'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:241:in `block in save'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:252:in `rollback_active_record_state!'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:240:in `save'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/lib/devise/hooks/trackable.rb:7:in `block in <top (required)>'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/hooks.rb:14:in `block in _run_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/hooks.rb:9:in `each'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/hooks.rb:9:in `_run_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/proxy.rb:113:in `authenticate!'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/proxy.rb:165:in `set_user'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/proxy.rb:298:in `_perform_authentication'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/app/controllers/devise/sessions_controller.rb:14:in `create'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/hooks.rb:14:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:53:in `_run_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/abstract_controller/base.rb:167:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:447:in `_run__77755734840326551__process_action__4521632167829203251__callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/abstract_controller/callbacks.rb:17:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:405:in `__run_callback'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/notifications.rb:123:in `instrument'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/notifications.rb:123:in `block in instrument'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/params_wrapper.rb:205:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/abstract_controller/base.rb:121:in `process'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/rack_delegation.rb:14:in `dispat
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/abstract_controller/rendering.rb:45:in `process'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/routing/route_set.rb:66:in `dispatch'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal.rb:203:in `dispatch'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal.rb:246:in `block in action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/routing/route_set.rb:66:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/routing/route_set.rb:30:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/routing/mapper.rb:40:in `call'
2012-04-26T16:03:15+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-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/journey-1.0.3/lib/journey/router.rb:56:in `each'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/journey-1.0.3/lib/journey/router.rb:56:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/routing/route_set.rb:589:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/sass-3.1.16/lib/sass/plugin/rack.rb:54:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:34:in `catch'
2012-04-26T16:03:15+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-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:34:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/etag.rb:23:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/conditionalget.rb:35:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/head.rb:14:in `call'
2012-04-26T16:03:15+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-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/query_cache.rb:64:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/cookies.rb:338:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/flash.rb:242:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:405:in `__run_callback'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/rack/logger.rb:16:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/rack/logger.rb:26:in `call_app'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/request_id.rb:22:in `call'
2012-04-26T16:03:15+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-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:405:in `_run__4075917817454350211__call__1038533202048283850__callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/static.rb:53:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:479:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:in `invalidate'
2012-04-26T16:03:15+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-04-26T16:03:15+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-04-26T16:03:15+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-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in `pass'
2012-04-26T16:03:15+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
2012-04-26T16:03:15+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in `service'
2012-04-26T16:03:15+00:00 app[web.1]: cache: [POST /users/sign_in] invalidate, pass
2012-04-26T16:03:15+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
2012-04-26T16:03:15+00:00 app[web.1]:
2012-04-26T16:03:15+00:00 app[web.1]:
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:443:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in `call!'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:220:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/rack/log_tailer.rb:14:in `call'
I just have no clue why this doesn't work...
Local is everything fine.
It looks like you haven't migrated heroku's database yet.
try:
heroku run rake db:migrate
Well, found it.
i was writing a role into a newly added column. that didn't work as intended.

Resources