Heroku does not work - ruby-on-rails

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

Related

ActiveAdmin not working fully in Heroku, works perfeclty locally. Rails application

I have been struggling with this error for days now if someone knows where to look I would be highly grateful.
Issue: I am running ActiveAdmin in my application, it works perfectly when I run it locally, but when I run it on Heroku, I can use all the functionality of my app except use one admin interface which is named "tasks".
When I open "tasks" I get an internal error 500.
Other functionality of my ActiveAdmin works perfectly and I am able to save data to my DB.
here is my gem file:
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'formtastic'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'materialize-sass'
gem 'devise', '~> 3.4.1'
gem 'toastr-rails'
gem 'mandrill-api', '1.0.52', require: 'mandrill'
gem 'omniauth'
gem 'omniauth-google-oauth2'
gem 'omniauth-facebook'
gem 'omniauth-github'
gem 'tzinfo-data'
gem 'activeadmin', github: 'activeadmin'
gem 'active_skin'
gem 'paperclip', '~> 4.2.1'
gem 'redcarpet', '~> 3.2.3'
gem 'coderay', '~> 1.1.0'
gem 'friendly_id', '~> 5.1.0'
gem 'active_admin-sortable_tree', '~> 0.2.1'
gem 'stripe', :git => 'https://github.com/stripe/stripe-ruby'
gem 'figaro', '~> 1.1.1'
gem 'aws-sdk'
group :development, :test do
gem 'byebug'
gem 'web-console', '~> 2.0'
gem 'spring'
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
Here is my logs:
-22T18:57:44.580763+00:00 app[web.1]: Processing by Admin::TasksController#index as HTML
-22T18:57:44.584610+00:00 app[web.1]: AdminUser Load (1.8ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = $1 ORDER BY "admin_users"."id" ASC LIM
["id", 2]]
-22T18:57:44.617306+00:00 app[web.1]: (1.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "tasks" LIMIT 10000 OFFSET 0) subquery_for_count
-22T18:57:44.618237+00:00 app[web.1]: CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "tasks" LIMIT 10000 OFFSET 0) subquery_for_count
-22T18:57:44.620682+00:00 app[web.1]: (1.1ms) SELECT COUNT(*) FROM "tasks"
-22T18:57:44.621592+00:00 app[web.1]: CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "tasks" LIMIT 10000 OFFSET 0) subquery_for_count
-22T18:57:44.624387+00:00 app[web.1]: Task Load (1.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" desc LIMIT 10000 OFFSET 0
-22T18:57:44.637054+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/app/views/active_admin/resource/index.html.arb (49.8ms)
-22T18:57:44.637281+00:00 app[web.1]: Completed 500 Internal Server Error in 56ms
-22T18:57:44.658687+00:00 app[web.1]:
-22T18:57:44.658697+00:00 app[web.1]: ActionView::Template::Error (comparison of Fixnum with String failed):
-22T18:57:44.658699+00:00 app[web.1]: 1: insert_tag renderer_for(:index)
-22T18:57:44.658700+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/relation/delegation.rb:132:in `sort_by'
-22T18:57:44.658701+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/relation/delegation.rb:132:in `public_send'
-22T18:57:44.658701+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/relation/delegation.rb:132:in `method_missing'
-22T18:57:44.658702+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/relation/delegation.rb:99:in `method_missing'
-22T18:57:44.658703+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/active_admin-sortable_tree-0.2.1/lib/active_admin/views/index_as_sortable.rb:13:in `build'
-22T18:57:44.658703+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:30:in `block in build_tag'
-22T18:57:44.658704+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
-22T18:57:44.658705+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
-22T18:57:44.658705+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
-22T18:57:44.658706+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
-22T18:57:44.658709+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/index.rb:139:in `block (2 levels) in rend
x'
-22T18:57:44.658709+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
-22T18:57:44.658710+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
-22T18:57:44.658711+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
-22T18:57:44.658712+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
-22T18:57:44.658712+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
-22T18:57:44.658713+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `div'
-22T18:57:44.658715+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/index.rb:138:in `block in render_index'
-22T18:57:44.658716+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
-22T18:57:44.658716+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
-22T18:57:44.658717+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
-22T18:57:44.658718+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
-22T18:57:44.658718+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
-22T18:57:44.658719+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `paginated_collection'
-22T18:57:44.658720+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/index.rb:132:in `render_index'
-22T18:57:44.658720+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/index.rb:50:in `build_collection'
-22T18:57:44.658721+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/index.rb:28:in `block in main_content'
-22T18:57:44.658722+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
-22T18:57:44.658723+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
-22T18:57:44.658723+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
-22T18:57:44.658724+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
-22T18:57:44.658725+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
-22T18:57:44.658726+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `batch_action_form'
-22T18:57:44.658726+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/index.rb:36:in `wrap_with_batch_action_fo
-22T18:57:44.658727+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/index.rb:26:in `main_content'
-22T18:57:44.658732+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/base.rb:91:in `block (2 levels) in build_
ntent_wrapper'
-22T18:57:44.658733+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
-22T18:57:44.658734+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
-22T18:57:44.658735+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
-22T18:57:44.658735+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
-22T18:57:44.658736+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
-22T18:57:44.658737+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `div'
-22T18:57:44.658737+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/base.rb:90:in `block in build_main_conten
er'
-22T18:57:44.658738+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
-22T18:57:44.658739+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
-22T18:57:44.658740+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
-22T18:57:44.658740+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
-22T18:57:44.658741+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
-22T18:57:44.658742+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `div'
-22T18:57:44.658743+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/base.rb:89:in `build_main_content_wrapper
-22T18:57:44.658743+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/base.rb:75:in `block in build_page_conten
-22T18:57:44.658744+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
-22T18:57:44.658745+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
-22T18:57:44.658746+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
-22T18:57:44.658746+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
-22T18:57:44.658747+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
-22T18:57:44.658748+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `div'
-22T18:57:44.658748+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/base.rb:74:in `build_page_content'
-22T18:57:44.658749+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/base.rb:52:in `block (2 levels) in build_
-22T18:57:44.658750+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
-22T18:57:44.658751+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
-22T18:57:44.658752+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
-22T18:57:44.658752+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
-22T18:57:44.658753+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
-22T18:57:44.658754+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `div'
-22T18:57:44.658754+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/base.rb:48:in `block in build_page'
-22T18:57:44.658755+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
-22T18:57:44.658756+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
-22T18:57:44.658757+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/base.rb:47:in `build_page'
-22T18:57:44.658758+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/lib/active_admin/views/pages/base.rb:10:in `build'
-22T18:57:44.658758+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:30:in `block in build_tag'
-22T18:57:44.658762+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
-22T18:57:44.658763+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
-22T18:57:44.658764+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
-22T18:57:44.658765+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/app/views/active_admin/resource/index.html.arb:2:in `block in _vendor_
ruby_______bundler_gems_activeadmin___fd_c__fc___app_views_active_admin_resource_index_html_arb___3510243039498056837_70206307693640'
-22T18:57:44.658766+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:45:in `instance_eval'
-22T18:57:44.658767+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:45:in `initialize'
-22T18:57:44.658767+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/app/views/active_admin/resource/index.html.arb:1:in `new'
-22T18:57:44.658768+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60/app/views/active_admin/resource/index.html.arb:1:in `_vendor_bundle_ru
__bundler_gems_activeadmin___fd_c__fc___app_views_active_admin_resource_index_html_arb___3510243039498056837_70206307693640'
-22T18:57:44.658769+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.0/lib/action_view/template.rb:145:in `block in render'
-22T18:57:44.658786+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:166:in `instrument'
-22T18:57:44.658787+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.0/lib/action_view/template.rb:333:in `instrument'
-22T18:57:44.658788+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.0/lib/action_view/template.rb:143:in `render'
-22T18:57:44.658788+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.0/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_templa
-22T18:57:44.658789+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.0/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
-22T18:57:44.658790+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
-22T18:57:44.658790+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
-22T18:57:44.658791+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-
-22T18:57:44.658838+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
-22T18:57:44.658839+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
-22T18:57:44.658840+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
-22T18:57:44.658840+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
-22T18:57:44.658841+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
-22T18:57:44.658842+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
-22T18:57:44.658842+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/abstract_controller/base.rb:137:in `process'
-22T18:57:44.658843+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.0/lib/action_view/rendering.rb:30:in `process'
-22T18:57:44.658844+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal.rb:195:in `dispatch'
-22T18:57:44.658845+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
-22T18:57:44.658845+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal.rb:236:in `block in action'
-22T18:57:44.658846+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:73:in `call'
-22T18:57:44.658846+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
-22T18:57:44.658847+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:42:in `serve'
-22T18:57:44.658847+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:43:in `block in serve'
-22T18:57:44.658848+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:30:in `each'
-22T18:57:44.658849+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:30:in `serve'
-22T18:57:44.658849+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:802:in `call'
-22T18:57:44.658854+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in `call!'
-22T18:57:44.658855+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
-22T18:57:44.658856+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in `call!'
-22T18:57:44.658856+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
-22T18:57:44.658857+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in `call!'
-22T18:57:44.658857+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
-22T18:57:44.658858+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call'
-22T18:57:44.658859+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch'
-22T18:57:44.658859+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call'
-22T18:57:44.658860+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
-22T18:57:44.658861+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call'
-22T18:57:44.658861+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
-22T18:57:44.658862+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
-22T18:57:44.658863+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/flash.rb:260:in `call'
-22T18:57:44.658863+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
-22T18:57:44.658864+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
-22T18:57:44.658865+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/cookies.rb:560:in `call'
-22T18:57:44.658868+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/query_cache.rb:36:in `call'
-22T18:57:44.658869+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in `call'
-22T18:57:44.658870+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
-22T18:57:44.658870+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `call'
-22T18:57:44.658871+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `_run_callbacks'
-22T18:57:44.658872+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
-22T18:57:44.658873+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
-22T18:57:44.658873+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
-22T18:57:44.658874+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
-22T18:57:44.658874+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
-22T18:57:44.658875+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
-22T18:57:44.658876+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/rack/logger.rb:38:in `call_app'
-22T18:57:44.658876+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/rack/logger.rb:20:in `block in call'
-22T18:57:44.658877+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in `block in tagged'
-22T18:57:44.658877+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:26:in `tagged'
-22T18:57:44.658878+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in `tagged'
-22T18:57:44.658878+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/rack/logger.rb:20:in `call'
-22T18:57:44.658879+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
-22T18:57:44.658880+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
-22T18:57:44.656956+00:00 heroku[router]: at=info method=GET path="/admin/tasks" host=www.mydomain.com request_id=c0a82d1f-490b-429f-9b09-48b6c75cd5d1 fwd="110.175.239.
no=web.1 connect=1ms service=88ms status=500 bytes=1754
-22T18:57:44.658880+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
-22T18:57:44.658881+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
-22T18:57:44.658881+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/static.rb:113:in `call'
-22T18:57:44.658882+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
-22T18:57:44.658883+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:518:in `call'
-22T18:57:44.658884+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application.rb:164:in `call'
-22T18:57:44.658884+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
-22T18:57:44.658885+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
-22T18:57:44.658886+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in `service'
-22T18:57:44.658886+00:00 app[web.1]: vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
-22T18:57:44.658887+00:00 app[web.1]: vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
-22T18:57:44.658888+00:00 app[web.1]: vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
-22T18:57:44.658888+00:00 app[web.1]:
-22T18:57:44.658889+00:00 app[web.1]:
app/admin/task.rb
ActiveAdmin.register Task do
permit_params :title, :note, :video, :header, :tag, :project_id
sortable tree: false,
sorting_attribute: :tag
index :as => :sortable do
label :title
actions
end
index do
selectable_column
column :header
column :title
column :tag
column :project
actions
end
form do |f|
f.inputs do
input :project, label: "Project"
input :title, label: "Title"
input :note, label: "Note"
input :video, label: "video"
input :header, label: "Header"
end
actions
end
end
If ANYONE knows knows what should I do I will be eternally grateful! If I should show other files to solve this problem please tell me and I will add them here.
I was able to sort this problem by changing the sorting_attribute: :tag to sorting_attribute: :project_id
I know this might not be the best way to do this, but it solved my problem. Thank you tremendously you who commented and gave me wise help, I owe you big time!

Ruby on Rails - devise error with heroku

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.

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 deployment error "Page doesn't exist"

I am trying to deploy to Heroku but am getting the dreaded "The page you were looking for doesn't exist." error on all pages. After reading similar issues, I've checked my routes file but all looks okay to me. Here's what I have:
Gemfile:
source 'https://rubygems.org'
ruby '2.1.1'
gem 'rails', '4.1.0'
gem 'bootstrap-sass', '~> 3.1.1.1'
gem 'sprockets', '~> 2.11.0'
gem 'bcrypt', '~> 3.1.5'
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
group :development do
gem 'better_errors'
gem 'binding_of_caller', :platforms=>[:mri_19, :mri_20, :mri_21, :rbx]
gem 'quiet_assets'
gem 'rails_layout'
end
group :development, :test do
gem 'sqlite3'
gem 'factory_girl_rails'
gem 'rspec-rails', '~> 2.14.1'
end
group :production do
gem 'thin'
gem 'pg', '~> 0.17.1'
gem 'rails_12factor', '~> 0.0.2'
end
group :test do
gem 'capybara'
gem 'database_cleaner'
gem 'faker'
gem 'launchy'
gem 'selenium-webdriver'
end
routes.rb:
Hartl::Application.routes.draw do
root to: 'static_pages#home'
resources :users
match '/help', to: 'static_pages#help', via: 'get'
match '/about', to: 'static_pages#about', via: 'get'
match '/contact', to: 'static_pages#contact', via: 'get'
match '/signup', to: 'users#new', via: 'get'
end
Heroku logs:
2014-05-01T14:38:40.012807+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/ssl.rb:24:in `call'
2014-05-01T14:38:40.012822+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
2014-05-01T14:38:40.012846+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/commands.rb:17:in `<top (required)>'
2014-05-01T14:38:40.012799+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/static.rb:64:in `call'
2014-05-01T14:38:40.012819+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
2014-05-01T14:38:40.012844+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
2014-05-01T14:38:40.012809+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/engine.rb:514:in `call'
2014-05-01T14:38:40.012823+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
2014-05-01T14:38:40.012847+00:00 app[web.1]: bin/rails:8:in `require'
2014-05-01T14:38:40.012793+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/rack/logger.rb:20:in `call'
2014-05-01T14:38:40.012812+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-05-01T14:38:40.012831+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:81:in `block in server'
2014-05-01T14:38:40.012810+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/application.rb:144:in `call'
2014-05-01T14:38:40.012825+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
2014-05-01T14:38:40.012813+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
2014-05-01T14:38:40.012826+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/handler/thin.rb:16:in `run'
2014-05-01T14:38:40.012850+00:00 app[web.1]:
2014-05-01T14:38:40.012815+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
2014-05-01T14:38:40.012828+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:264:in `start'
2014-05-01T14:38:40.012851+00:00 app[web.1]:
2014-05-01T14:38:40.012816+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
2014-05-01T14:38:40.012829+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/commands/server.rb:69:in `start'
2014-05-01T14:38:40.005302+00:00 app[web.1]: Started GET "/users" for 69.245.11.208 at 2014-05-01 14:38:40 +0000
2014-05-01T14:38:40.012849+00:00 app[web.1]: bin/rails:8:in `<main>'
2014-05-01T14:44:38.389637+00:00 heroku[run.7236]: State changed from starting to up
2014-05-01T14:44:38.316951+00:00 heroku[run.7236]: Awaiting client
2014-05-01T14:44:38.372859+00:00 heroku[run.7236]: Starting process with command `bundle exec rake db:migrate`
2014-05-01T14:44:45.056822+00:00 heroku[run.7236]: State changed from up to complete
2014-05-01T14:44:48.286258+00:00 heroku[router]: at=info method=GET path=/ host=still-wave-7596.herokuapp.com request_id=9a553d21-ab0e-4c21-9fb1-9d7cc020c059 fwd="69.245.11.208" dyno=web.1 connect=3ms service=13ms status=404 bytes=1828
2014-05-01T14:44:48.273634+00:00 app[web.1]: Started GET "/" for 69.245.11.208 at 2014-05-01 14:44:48 +0000
2014-05-01T14:44:48.282633+00:00 app[web.1]:
2014-05-01T14:44:48.282654+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/journey/router.rb:71:in `block in call'
2014-05-01T14:44:48.282670+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2014-05-01T14:44:48.282688+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.0/lib/active_support/tagged_logging.rb:68:in `tagged'
2014-05-01T14:44:48.282638+00:00 app[web.1]: ActionController::RoutingError (uninitialized constant StaticPagesController):
2014-05-01T14:44:48.282656+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/journey/router.rb:59:in `each'
2014-05-01T14:44:48.282673+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
2014-05-01T14:44:48.282690+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/rack/logger.rb:20:in `call'
2014-05-01T14:44:48.282709+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-05-01T14:44:48.282643+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.0/lib/active_support/inflector/methods.rb:238:in `block in constantize'
2014-05-01T14:44:48.282659+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:676:in `call'
2014-05-01T14:44:48.282677+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2014-05-01T14:44:48.282691+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-05-01T14:44:48.282710+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
2014-05-01T14:44:48.282641+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.0/lib/active_support/inflector/methods.rb:238:in `const_get'
2014-05-01T14:44:48.282657+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/journey/router.rb:59:in `call'
2014-05-01T14:44:48.282669+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-05-01T14:44:48.282680+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2014-05-01T14:44:48.282693+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-05-01T14:44:48.282712+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
2014-05-01T14:44:48.282645+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.0/lib/active_support/inflector/methods.rb:236:in `each'
2014-05-01T14:44:48.282660+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
2014-05-01T14:44:48.282675+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2014-05-01T14:44:48.282687+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.0/lib/active_support/tagged_logging.rb:26:in `tagged'
2014-05-01T14:44:48.282704+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
2014-05-01T14:44:48.282718+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
2014-05-01T14:44:48.282729+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:81:in `block in server'
2014-05-01T14:44:48.282647+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.0/lib/active_support/inflector/methods.rb:236:in `inject'
2014-05-01T14:44:48.282662+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in `call'
2014-05-01T14:44:48.282672+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0/lib/active_record/query_cache.rb:36:in `call'
2014-05-01T14:44:48.282683+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/rack/logger.rb:38:in `call_app'
2014-05-01T14:44:48.282705+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/ssl.rb:24:in `call'
2014-05-01T14:44:48.282720+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
2014-05-01T14:44:48.282733+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
2014-05-01T14:44:48.282648+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.0/lib/active_support/inflector/methods.rb:236:in `constantize'
2014-05-01T14:44:48.282664+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2014-05-01T14:44:48.282679+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2014-05-01T14:44:48.282694+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-05-01T14:44:48.282715+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/thin-1.6.2/lib/thin/connection.rb:53:in `process'
2014-05-01T14:44:48.282726+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:264:in `start'
2014-05-01T14:44:48.282739+00:00 app[web.1]:
2014-05-01T14:44:48.282650+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:76:in `controller_reference'
2014-05-01T14:44:48.282663+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
2014-05-01T14:44:48.282676+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:82:in `run_callbacks'
2014-05-01T14:44:48.282684+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/rack/logger.rb:20:in `block in call'
2014-05-01T14:44:48.282697+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/static.rb:64:in `call'
2014-05-01T14:44:48.282717+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
2014-05-01T14:44:48.282727+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/commands/server.rb:69:in `start'
2014-05-01T14:44:48.282740+00:00 app[web.1]:
2014-05-01T14:44:48.282651+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:66:in `controller'
2014-05-01T14:44:48.282666+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/flash.rb:254:in `call'
2014-05-01T14:44:48.282686+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.0/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2014-05-01T14:44:48.282706+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/engine.rb:514:in `call'
2014-05-01T14:44:48.282721+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
2014-05-01T14:44:48.282736+00:00 app[web.1]: bin/rails:8:in `require'
2014-05-01T14:44:48.282653+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:44:in `call'
2014-05-01T14:44:48.282667+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-05-01T14:44:48.282682+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2014-05-01T14:44:48.282696+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.0/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
2014-05-01T14:44:48.282714+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
2014-05-01T14:44:48.282734+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/commands.rb:17:in `<top (required)>'
2014-05-01T14:44:48.282708+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/application.rb:144:in `call'
2014-05-01T14:44:48.282723+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
2014-05-01T14:44:48.282725+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/handler/thin.rb:16:in `run'
2014-05-01T14:44:48.282737+00:00 app[web.1]: bin/rails:8:in `<main>'
2014-05-01T14:44:48.282730+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:76:in `tap'
2014-05-01T14:44:48.282732+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:76:in `server'
2014-05-01T14:44:48.606159+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=still-wave-7596.herokuapp.com request_id=4349600e-547a-495f-9f3c-81ce35f74539 fwd="69.245.11.208" dyno=web.1 connect=3ms service=3ms status=304 bytes=132
2014-05-01T14:44:45.060196+00:00 heroku[run.7236]: Process exited with status 0
2014-05-01T14:44:53.122516+00:00 heroku[router]: at=info method=GET path=/ host=still-wave-7596.herokuapp.com request_id=a535fff0-91ec-4420-b5cb-cfc5f558ac8d fwd="69.245.11.208" dyno=web.1 connect=4ms service=9ms status=404 bytes=1828
2014-05-01T14:44:53.116717+00:00 app[web.1]: Started GET "/" for 69.245.11.208 at 2014-05-01 14:44:53 +0000
Edit: Just saw the issue in the logs with the StaticPagesController. I am probably blind but I still cannot see the issue. Here is the file:
static_pages_controller.rb
class StaticPagesController < ApplicationController
def home
end
def help
end
def about
end
def contact
end
end
Edit 2: Longer Heroku logs added:
http://pastebin.com/AxSHivmD
Comment for any additional files required to diagnose the issue. Thanks!

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.

Resources