Error when exporting data to csv/xls file - ruby-on-rails

I am attempting to export data to an excel document and have been following railscast 362 however I am getting errors. The main issue I seem to be having is that previously campaign didnt have a model file but rather an observer file. When I create a campaign model file an error occurs relating to ransack search features on the page however these errors do not occur when i remove the campaign model file again. Can anyone explain the difference and why I might be getting this error.
Controller: campaigns_controller.rb
def index
#search = Campaign.search(params[:q])
#campaigns = #search.result.page(params[:page]||1)
if params[:sort]
#my_campaigns = Campaign.active
#campaigns = #my_campaigns
#campaigns = #campaigns.order(sort_column + " " + sort_direction).page(params[:page]||1)
end
respond_to do |format|
format.html
format.csv { send_data #campaigns.to_csv }
format.xls
end
end
Model: campaign.rb
class Campaign < ActiveRecord::Base
def self.to_csv(options = {})
CSV.generate(options) do |csv|
csv << column_names
all.each do |product|
csv << product.attributes.values_at(*column_names)
end
end
end
end
View link
= link_to '<i class="glyphicon glyphicon-cloud-download"></i>'.html_safe, admin_campaigns_path(format: "csv"), title: "Download Campaign XLS", rel: 'tooltip'
= link_to '<i class="glyphicon glyphicon-cloud-download"></i>'.html_safe, admin_campaigns_path(format: "xls"), title: "Download Campaign XLS", rel: 'tooltip'
Full Trace
/home.rvm/gems/ruby-2.3.0/gems/ransack-1.1.0/lib/ransack/search.rb:89:in `method_missing'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/helpers/form_helper.rb:1159:in `value_before_type_cast'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/helpers/form_helper.rb:1147:in `value_before_type_cast'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/helpers/form_helper.rb:1041:in `block in to_input_field_tag'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/helpers/form_helper.rb:1041:in `fetch'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/helpers/form_helper.rb:1041:in `to_input_field_tag'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/helpers/form_helper.rb:690:in `text_field'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/helpers/form_helper.rb:1283:in `text_field'
app/views/admin/campaigns/index.html.haml:45:in `block in _app_views_admin_campaigns_index_html_haml___1611602558606621117_84091040'
/home.rvm/gems/ruby-2.3.0/gems/haml-3.2.0.rc.4/lib/haml/helpers/action_view_mods.rb:133:in `block (2 levels) in form_for_with_haml'
/home.rvm/gems/ruby-2.3.0/gems/haml-3.2.0.rc.4/lib/haml/helpers.rb:278:in `with_tabs'
/home.rvm/gems/ruby-2.3.0/gems/haml-3.2.0.rc.4/lib/haml/helpers/action_view_mods.rb:133:in `block in form_for_with_haml'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
/home.rvm/gems/ruby-2.3.0/gems/haml-3.2.0.rc.4/lib/haml/helpers/action_view_xss_mods.rb:5:in `with_output_buffer_with_haml_xss'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/helpers/capture_helper.rb:40:in `capture'
/home.rvm/gems/ruby-2.3.0/gems/haml-3.2.0.rc.4/lib/haml/helpers/action_view_mods.rb:59:in `capture_with_haml'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/helpers/form_helper.rb:378:in `form_for'
/home.rvm/gems/ruby-2.3.0/gems/haml-3.2.0.rc.4/lib/haml/helpers/action_view_mods.rb:135:in `form_for_with_haml'
/home.rvm/gems/ruby-2.3.0/gems/haml-3.2.0.rc.4/lib/haml/helpers/action_view_xss_mods.rb:28:in `form_for_with_haml_xss'
/home.rvm/gems/ruby-2.3.0/gems/ransack-1.1.0/lib/ransack/helpers/form_helper.rb:24:in `search_form_for'
app/views/admin/campaigns/index.html.haml:42:in `_app_views_admin_campaigns_index_html_haml___1611602558606621117_84091040'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/template.rb:145:in `block in render'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/notifications.rb:125:in `instrument'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/template.rb:143:in `render'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/renderer/template_renderer.rb:48:in `block (2 levels) in render_template'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/notifications.rb:123:in `block in instrument'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/notifications.rb:123:in `instrument'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/renderer/template_renderer.rb:47:in `block in render_template'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/renderer/template_renderer.rb:55:in `render_with_layout'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/renderer/template_renderer.rb:46:in `render_template'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/renderer/template_renderer.rb:18:in `render'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/renderer/renderer.rb:41:in `render_template'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_view/renderer/renderer.rb:22:in `render'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/abstract_controller/rendering.rb:110:in `_render_template'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/streaming.rb:225:in `_render_template'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/abstract_controller/rendering.rb:103:in `render_to_body'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/abstract_controller/rendering.rb:88:in `render'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/rendering.rb:16:in `render'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/home.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
/home.rvm/gems/ruby-2.3.0/gems/activerecord-3.2.22.2/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/instrumentation.rb:39:in `render'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/mime_responds.rb:196:in `respond_to'
app/controllers/admin/campaigns_controller.rb:20:in `index'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/abstract_controller/base.rb:167:in `process_action'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/callbacks.rb:459:in `block in _run__3061069654697754334__process_action__3738294813647729293__callbacks'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_8614'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/callbacks.rb:326:in `around'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/callbacks.rb:310:in `_callback_around_15'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_8614'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/callbacks.rb:414:in `_run__3061069654697754334__process_action__3738294813647729293__callbacks'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/callbacks.rb:405:in `__run_callback'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/notifications.rb:123:in `block in instrument'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/notifications.rb:123:in `instrument'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/home.rvm/gems/ruby-2.3.0/gems/activerecord-3.2.22.2/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/abstract_controller/base.rb:121:in `process'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/abstract_controller/rendering.rb:45:in `process'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal.rb:203:in `dispatch'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_controller/metal.rb:246:in `block in action'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/routing/route_set.rb:36:in `call'
/home.rvm/gems/ruby-2.3.0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/home.rvm/gems/ruby-2.3.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/home.rvm/gems/ruby-2.3.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/routing/route_set.rb:608:in `call'
/home.rvm/gems/ruby-2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call'
/home.rvm/gems/ruby-2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch'
/home.rvm/gems/ruby-2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/home.rvm/gems/ruby-2.3.0/gems/rack-1.4.7/lib/rack/etag.rb:23:in `call'
/home.rvm/gems/ruby-2.3.0/gems/rack-1.4.7/lib/rack/conditionalget.rb:25:in `call'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/middleware/head.rb:14:in `call'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/middleware/flash.rb:242:in `call'
/home.rvm/gems/ruby-2.3.0/gems/rack-1.4.7/lib/rack/session/abstract/id.rb:210:in `context'
/home.rvm/gems/ruby-2.3.0/gems/rack-1.4.7/lib/rack/session/abstract/id.rb:205:in `call'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/home.rvm/gems/ruby-2.3.0/gems/activerecord-3.2.22.2/lib/active_record/query_cache.rb:64:in `call'
/home.rvm/gems/ruby-2.3.0/gems/activerecord-3.2.22.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/callbacks.rb:405:in `_run__2077840542981017711__call__2151128257704977288__callbacks'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/callbacks.rb:405:in `__run_callback'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/middleware/reloader.rb:65:in `call'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/home.rvm/gems/ruby-2.3.0/gems/better_errors-1.1.0/lib/better_errors/middleware.rb:58:in `call'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/home.rvm/gems/ruby-2.3.0/gems/railties-3.2.22.2/lib/rails/rack/logger.rb:32:in `call_app'
/home.rvm/gems/ruby-2.3.0/gems/railties-3.2.22.2/lib/rails/rack/logger.rb:16:in `block in call'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/tagged_logging.rb:22:in `tagged'
/home.rvm/gems/ruby-2.3.0/gems/railties-3.2.22.2/lib/rails/rack/logger.rb:16:in `call'
config/initializers/quiet_assets.rb:7:in `call_with_quiet_assets'
/home.rvm/gems/ruby-2.3.0/gems/request_store-1.3.1/lib/request_store/middleware.rb:9:in `call'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/home.rvm/gems/ruby-2.3.0/gems/rack-1.4.7/lib/rack/methodoverride.rb:21:in `call'
/home.rvm/gems/ruby-2.3.0/gems/rack-1.4.7/lib/rack/runtime.rb:17:in `call'
/home.rvm/gems/ruby-2.3.0/gems/activesupport-3.2.22.2/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/home.rvm/gems/ruby-2.3.0/gems/rack-1.4.7/lib/rack/lock.rb:15:in `call'
/home.rvm/gems/ruby-2.3.0/gems/actionpack-3.2.22.2/lib/action_dispatch/middleware/static.rb:83:in `call'
/home.rvm/gems/ruby-2.3.0/gems/railties-3.2.22.2/lib/rails/engine.rb:484:in `call'
/home.rvm/gems/ruby-2.3.0/gems/railties-3.2.22.2/lib/rails/application.rb:231:in `call'
/home.rvm/gems/ruby-2.3.0/gems/rack-1.4.7/lib/rack/content_length.rb:14:in `call'
/home.rvm/gems/ruby-2.3.0/gems/railties-3.2.22.2/lib/rails/rack/log_tailer.rb:17:in `call'
/home.rvm/gems/ruby-2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:86:in `block in pre_process'
/home.rvm/gems/ruby-2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:84:in `catch'
/home.rvm/gems/ruby-2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:84:in `pre_process'
/home.rvm/gems/ruby-2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:53:in `process'
/home.rvm/gems/ruby-2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:39:in `receive_data'
/home.rvm/gems/ruby-2.3.0/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:194:in `run_machine'
/home.rvm/gems/ruby-2.3.0/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:194:in `run'
/home.rvm/gems/ruby-2.3.0/gems/thin-1.7.0/lib/thin/backends/base.rb:73:in `start'
/home.rvm/gems/ruby-2.3.0/gems/thin-1.7.0/lib/thin/server.rb:162:in `start'
/home.rvm/gems/ruby-2.3.0/gems/rack-1.4.7/lib/rack/handler/thin.rb:13:in `run'
/home.rvm/gems/ruby-2.3.0/gems/rack-1.4.7/lib/rack/server.rb:268:in `start'
/home.rvm/gems/ruby-2.3.0/gems/railties-3.2.22.2/lib/rails/commands/server.rb:70:in `start'
/home.rvm/gems/ruby-2.3.0/gems/railties-3.2.22.2/lib/rails/commands.rb:55:in `block in <top (required)>'
/home.rvm/gems/ruby-2.3.0/gems/railties-3.2.22.2/lib/rails/commands.rb:50:in `tap'
/home.rvm/gems/ruby-2.3.0/gems/railties-3.2.22.2/lib/rails/commands.rb:50:in `<top (required)>'
script/rails:6:in `require'
script/rails:6:in `<main>'

Related

React::ServerRendering::PrerenderError with react prerender: true

I am getting following error when I am using prerender: true. I am using react-rails gems
its working fine with prerender: false
var Router = window.ReactRouter.Router
var Route = window.ReactRouter.Route
var Albums = React.createClass({
render: function(){
return(
<Router>
<Route path="/" component={App}>
</Route>
</Router>
)
}
})
Showing /home/rails/work/vijay/react/photo_study/app/views/home/index.html.erb where line #2 raised:
Encountered error "Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings." when prerendering Albums with {}
Object.invariant [as default] ((execjs):21975:16)
createHashHistory ((execjs):24100:130)
(execjs):22625:20
wrapDeprecatedHistory ((execjs):25277:61)
createRouterObjects ((execjs):25251:23)
componentWillMount ((execjs):25220:38)
ReactCompositeComponentMixin.mountComponent ((execjs):7286:13)
wrapper [as mountComponent] ((execjs):1414:22)
Object.ReactReconciler.mountComponent ((execjs):5606:36)
ReactCompositeComponentMixin.mountComponent ((execjs):7301:35)
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:36:in `rescue in block in eval'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:33:in `block in eval'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:75:in `block in lock'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:73:in `Locker'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:73:in `lock'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:32:in `eval'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/server_rendering/exec_js_renderer.rb:23:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/server_rendering/sprockets_renderer.rb:32:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/server_rendering.rb:17:in `block in render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/connection_pool-2.2.0/lib/connection_pool.rb:64:in `block (2 levels) in with'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:in `handle_interrupt'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:in `block in with'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:in `handle_interrupt'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:in `with'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/server_rendering.rb:16:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/rails/component_mount.rb:31:in `block in react_component'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/helpers/capture_helper.rb:38:in `capture'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/helpers/tag_helper.rb:106:in `content_tag'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/rails/component_mount.rb:44:in `react_component'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/rails/view_helper.rb:21:in `react_component'
/home/rails/work/vijay/react/photo_study/app/views/home/index.html.erb:2:in `_app_views_home_index_html_erb___821011538__654593158'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/template.rb:145:in `block in render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications.rb:166:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/template.rb:333:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/template.rb:143:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `block in instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/template_renderer.rb:52:in `render_template'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/template_renderer.rb:14:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/renderer.rb:42:in `render_template'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/renderer.rb:23:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/rendering.rb:100:in `_render_template'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/streaming.rb:217:in `_render_template'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/rendering.rb:83:in `render_to_body'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/rendering.rb:32:in `render_to_body'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/renderers.rb:37:in `render_to_body'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/abstract_controller/rendering.rb:25:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/rendering.rb:16:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/home/rails/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/core_ext/benchmark.rb:12:in `ms'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activerecord-4.2.5/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:43:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/abstract_controller/base.rb:198:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:117:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:505:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/abstract_controller/callbacks.rb:19:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `block in instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activerecord-4.2.5/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/abstract_controller/base.rb:137:in `process'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/rendering.rb:30:in `process'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal.rb:196:in `dispatch'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal.rb:237:in `block in action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:45:in `serve'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/journey/router.rb:43:in `block in serve'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/journey/router.rb:30:in `each'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/journey/router.rb:30:in `serve'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:817:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/flash.rb:260:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activerecord-4.2.5/lib/active_record/query_cache.rb:36:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activerecord-4.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activerecord-4.2.5/lib/active_record/migration.rb:377:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/reloader.rb:73:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/web-console-2.3.0/lib/web_console/middleware.rb:28:in `block in call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/web-console-2.3.0/lib/web_console/middleware.rb:18:in `catch'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/web-console-2.3.0/lib/web_console/middleware.rb:18:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/railties-4.2.5/lib/rails/rack/logger.rb:38:in `call_app'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/railties-4.2.5/lib/rails/rack/logger.rb:20:in `block in call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/tagged_logging.rb:26:in `tagged'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/tagged_logging.rb:68:in `tagged'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/railties-4.2.5/lib/rails/rack/logger.rb:20:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/static.rb:116:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/railties-4.2.5/lib/rails/engine.rb:518:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/railties-4.2.5/lib/rails/application.rb:165:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in `service'
/home/rails/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
/home/rails/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
/home/rails/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'

App error, pushed to heroku Missing template

I'm attempting to deploy a rails webapp on Heroku using Cloud9. This might be a precompiling asset problem. I checked the heroku error logs and the error says Action Controller: Exception Caught
Everything works fine on my local machine, there is just something going wrong when pushing to heroku.
def find(*args)
find_all(*args).first || raise(MissingTemplate.new(self, *args))
end
def find_all(path, prefixes = [], *args)
vendor/bundle/ruby/2.0.0/gems/actionview-4.2.4/lib/action_view/path_set.rb:46:in `find'
vendor/bundle/ruby/2.0.0/gems/actionview-4.2.4/lib/action_view/lookup_context.rb:121:in `find'
vendor/bundle/ruby/2.0.0/gems/actionview-4.2.4/lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
vendor/bundle/ruby/2.0.0/gems/actionview-4.2.4/lib/action_view/renderer/template_renderer.rb:40:in `determine_template'
vendor/bundle/ruby/2.0.0/gems/actionview-4.2.4/lib/action_view/renderer/template_renderer.rb:8:in `render'
vendor/bundle/ruby/2.0.0/gems/actionview-4.2.4/lib/action_view/renderer/renderer.rb:42:in `render_template'
vendor/bundle/ruby/2.0.0/gems/actionview-4.2.4/lib/action_view/renderer/renderer.rb:23:in `render'
vendor/bundle/ruby/2.0.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:100:in `_render_template'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/streaming.rb:217:in `_render_template'
vendor/bundle/ruby/2.0.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:83:in `render_to_body'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:32:in `render_to_body'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/renderers.rb:37:in `render_to_body'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/abstract_controller/rendering.rb:25:in `render'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:16:in `render'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
vendor/ruby-2.0.0/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/core_ext/benchmark.rb:12:in `ms'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:43:in `render'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process'
vendor/bundle/ruby/2.0.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call'
vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call'
vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call'
vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call'
vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call'
vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app'
vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged'
vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call'
vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call'
vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call'
vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call'
vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in `service'
vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'

Capybara: undefined method `link' for []:Array

I am trying to run simple test using cucumber/capybara. I want to visit a URL and it works when I do so manually. However, when I try to visit the URL using cucumber/capybara I am taken to an "Internal Server Error" page with the following error undefined method 'link' for []:Array
Here is my code
transfer.feature
Scenario: token transfer pixels from token shop
Given I transfer tokens from token shop
transfer_steps.rb
Given /^I transfer tokens from token shop$/ do
visit('/token-shop')
end
Here is the error logs
/Users/simon/Documents/gamefuse/gf/app/views/token_shop/shared/_promos.html.haml:4:in `_app_views_token_shop_shared__promos_html_haml___2437011481481195334_70124182969840'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/template.rb:145:in `block in render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:125:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/template.rb:143:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/partial_renderer.rb:237:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:176:in `block in render_with_newrelic'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/method_tracer.rb:273:in `trace_execution_scoped'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:175:in `render_with_newrelic'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:41:in `render_partial'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:15:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/helpers/rendering_helper.rb:24:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/haml-4.0.3/lib/haml/helpers.rb:89:in `non_haml'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/Users/simon/Documents/gamefuse/gf/app/views/token_shop/index.html.haml:29:in `_app_views_token_shop_index_html_haml__779242564751016951_70124227746800'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/template.rb:145:in `block in render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:125:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/template.rb:143:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:45:in `render_template'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:18:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:160:in `block in render_with_newrelic'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/method_tracer.rb:273:in `trace_execution_scoped'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:159:in `render_with_newrelic'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:36:in `render_template'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:17:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:110:in `_render_template'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/streaming.rb:225:in `_render_template'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:103:in `render_to_body'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:88:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/rendering.rb:16:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/Users/simon/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activerecord-3.2.13/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:39:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/remotipart-1.2.1/lib/remotipart/render_overrides.rb:14:in `render_with_remotipart'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:167:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/rendering.rb:10:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:458:in `_run__4434222007848262428__process_action__3763121460391815624__callbacks'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/callbacks.rb:17:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/rescue.rb:29:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activerecord-3.2.13/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:38:in `block in process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:318:in `perform_action_with_newrelic_trace'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:37:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:121:in `process'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:45:in `process'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal.rb:203:in `dispatch'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal.rb:246:in `block in action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:73:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:36:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:612:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-pjax-0.7.0/lib/rack/pjax.rb:12:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/route_downcaser-0.2.0/lib/route_downcaser/downcase_route_middleware.rb:21:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/rack/error_collector.rb:12:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/rack/agent_hooks.rb:18:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/rack/browser_monitoring.rb:16:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/warden-1.2.1/lib/warden/manager.rb:35:in `block in call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/warden-1.2.1/lib/warden/manager.rb:34:in `catch'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/warden-1.2.1/lib/warden/manager.rb:34:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/head.rb:14:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/remotipart-1.2.1/lib/remotipart/middleware.rb:27:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/flash.rb:242:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activerecord-3.2.13/lib/active_record/query_cache.rb:64:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `_run__1537760651371211515__call__2831774802156914086__callbacks'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/cucumber-rails-1.3.1/lib/cucumber/rails/action_controller.rb:10:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/railties-3.2.13/lib/rails/rack/logger.rb:32:in `call_app'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:in `block in call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/tagged_logging.rb:22:in `tagged'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/static.rb:63:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/railties-3.2.13/lib/rails/engine.rb:479:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/railties-3.2.13/lib/rails/application.rb:223:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/capybara-2.1.0/lib/capybara/server.rb:19:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
/Users/simon/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/Users/simon/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/Users/simon/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
EDIT
And here is the haml file mentioned in the error log
_promos.html.haml
.promos
.item
-if #token_shop_promotion
-if #token_shop_promotion.link == "empty"
= image_tag #token_shop_promotion.image.url, :alt => #token_shop_promotion.title, :height => 456, :width => 444
-else
= link_to(image_tag(#token_shop_promotion.image.url, :alt => #token_shop_promotion.title, :height => 456, :width => 444), #token_shop_promotion.link, :target => 'blanck')
It seems that #token_shop_promotion is an array in your partial, when you expect it to be a singular object. Make sure the data is what you expect it to be, the is pretty much the first step/rule in any debugging scenario.
In your case it seems that you assume the data you are using to be different, it fails because of that and instead of verifying your assumptions, you go on a wild goose hunt :)
Reminds me of this blog post, read it :)

.includes method doesn't work

I have installed the gem bullet to enhance performences on my small app (which is running with Rails 4 Edge)
However, the '.includes' method doesn't seem to work:
def index
#articles = Article.includes(:category)
end
This returns 'can't convert Symbol into Integer'
Same goes when I'm running this in the rails console, for any association I got this same error; is .includes is deprecated, or am I doing it wrong?
Thanks
Here is the fulltrace:
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader/association.rb:106:in `[]'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader/association.rb:106:in `build_scope'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader/association.rb:28:in `scope'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader/association.rb:32:in `records_for'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader/association.rb:80:in `block in associated_records_by_owner'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader/association.rb:80:in `each'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader/association.rb:80:in `each_slice'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader/association.rb:80:in `each'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader/association.rb:80:in `map'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader/association.rb:80:in `associated_records_by_owner'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader/singular_association.rb:9:in `preload'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader/association.rb:19:in `run'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader.rb:129:in `block (2 levels) in preload_one'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader.rb:128:in `each'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader.rb:128:in `block in preload_one'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader.rb:127:in `each'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader.rb:127:in `preload_one'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader.rb:104:in `preload'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader.rb:93:in `block in run'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader.rb:93:in `each'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/associations/preloader.rb:93:in `run'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/relation.rb:570:in `block in exec_queries'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/relation.rb:569:in `each'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/relation.rb:569:in `exec_queries'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/relation.rb:456:in `block in load'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/explain.rb:29:in `logging_query_plan'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/relation.rb:456:in `load'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/relation.rb:197:in `to_a'
bullet (4.3.0) lib/bullet/active_record3x.rb:10:in `to_a'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/relation/delegation.rb:13:in `each'
app/views/articles/index.html.slim:44:in `_app_views_articles_index_html_slim___1140651801917805301_70356832595700'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_view/template.rb:144:in `block in render'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/notifications.rb:160:in `instrument'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_view/template.rb:142:in `render'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_view/renderer/template_renderer.rb:49:in `block (2 levels) in render_template'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_view/renderer/abstract_renderer.rb:23:in `block in instrument'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/notifications.rb:158:in `block in instrument'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/notifications.rb:158:in `instrument'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_view/renderer/abstract_renderer.rb:23:in `instrument'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_view/renderer/template_renderer.rb:48:in `block in render_template'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_view/renderer/template_renderer.rb:56:in `render_with_layout'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_view/renderer/template_renderer.rb:47:in `render_template'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_view/renderer/template_renderer.rb:17:in `render'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_view/renderer/renderer.rb:36:in `render_template'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_view/renderer/renderer.rb:17:in `render'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/abstract_controller/rendering.rb:119:in `_render_template'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/streaming.rb:219:in `_render_template'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/abstract_controller/rendering.rb:112:in `render_to_body'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/rendering.rb:33:in `render_to_body'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/renderers.rb:26:in `render_to_body'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/abstract_controller/rendering.rb:97:in `render'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/rendering.rb:16:in `render'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/instrumentation.rb:41:in `block in render'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/instrumentation.rb:40:in `render'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/abstract_controller/base.rb:189:in `process_action'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/callbacks.rb:413:in `_run__4416358697319013222__process_action__callbacks'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/callbacks.rb:78:in `run_callbacks'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/notifications.rb:158:in `block in instrument'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/notifications.rb:158:in `instrument'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/abstract_controller/base.rb:136:in `process'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/abstract_controller/rendering.rb:44:in `process'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal.rb:195:in `dispatch'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_controller/metal.rb:231:in `block in action'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/routing/route_set.rb:77:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/routing/route_set.rb:77:in `dispatch'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/routing/route_set.rb:45:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/journey/router.rb:69:in `block in call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/journey/router.rb:57:in `each'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/journey/router.rb:57:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/routing/route_set.rb:614:in `call'
bullet (4.3.0) lib/bullet/rack.rb:11:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.2) lib/rack/etag.rb:23:in `call'
rack (1.4.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.4.2) lib/rack/head.rb:9:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/middleware/params_parser.rb:30:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/middleware/flash.rb:233:in `call'
rack (1.4.2) lib/rack/session/abstract/id.rb:210:in `context'
rack (1.4.2) lib/rack/session/abstract/id.rb:205:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/middleware/cookies.rb:443:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/query_cache.rb:36:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:631:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activerecord/lib/active_record/migration.rb:348:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/callbacks.rb:373:in `_run__1420375788820113751__call__callbacks'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/callbacks.rb:78:in `run_callbacks'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/middleware/reloader.rb:64:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/railties/lib/rails/rack/logger.rb:32:in `call_app'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/railties/lib/rails/rack/logger.rb:16:in `block in call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/tagged_logging.rb:67:in `block in tagged'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/tagged_logging.rb:25:in `tagged'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/tagged_logging.rb:67:in `tagged'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/railties/lib/rails/rack/logger.rb:16:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.4.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.2) lib/rack/runtime.rb:17:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/activesupport/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.2) lib/rack/lock.rb:15:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/actionpack/lib/action_dispatch/middleware/static.rb:63:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/railties/lib/rails/engine.rb:508:in `call'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/rails-e63e280bed3a/railties/lib/rails/application.rb:95:in `call'
rack (1.4.2) lib/rack/lock.rb:15:in `call'
rack (1.4.2) lib/rack/content_length.rb:14:in `call'
rack (1.4.2) lib/rack/handler/webrick.rb:59:in `service'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/home/shideneyu/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
Last but not least, where the error is:
th Actions
tbody
- #articles.each do |article| <---- This line is highlited for the error
tr
td
div class="span1"
Article Model:
class Article < ActiveRecord::Base
attr_readonly :user_id
belongs_to :category
belongs_to :user
with_options(dependent: :destroy) do |opts|
opts.has_many :events, as: :eventable
opts.has_many :mentions, as: :mentionable
opts.has_many :comments, as: :commentable
end
has_and_belongs_to_many :tags, :uniq => true
validates_presence_of :category, :content
validates_uniqueness_of :name, scope: :category_id
end
.includes method works for instances that means your method should look like this :
def index
#articles = Article.includes(:category).find(1)
end
or for example of collection
def index
#articles = #blog.articles.includes(:category)
end

Rails: unknown attribute

This used to work when I had rails 3.0.8. After hearing about some security issues with ActiveRecord I decided to update everything and this got broken. Let me know if you need anymore info.
error:
unknown attribute: gene_family_id
app/views/gene_families/show.html.erb
<%= form_for( [#gene_family, #gene_family.cvits.build], :html => {:onsubmit => "return ray.ajax()" }) do |f| %>
...
<% end %>
config/routes.yml
LisCvit::Application.routes.draw do
resources :cvits, :path => 'cvit' do
get 'new' , :on => :collection
end
resources :gene_families do
resources :cvits
collection do
post 'blast'
get 'search'
end
end
root :to => "cvits#error"
end
Full Trace:
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/attribute_assignment.rb:88:in `assign_attributes'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/attribute_assignment.rb:78:in `each'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/attribute_assignment.rb:78:in `assign_attributes'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/associations/association.rb:235:in `build_record'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/base.rb:500:in `initialize'
app/models/cvit.rb:6:in `initialize'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/reflection.rb:183:in `new'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/reflection.rb:183:in `build_association'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/associations/association.rb:233:in `build_record'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/associations/collection_association.rb:112:in `build'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/associations/collection_proxy.rb:46:in `__send__'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/associations/collection_proxy.rb:46:in `build'
app/views/gene_families/show.html.erb:102:in `_app_views_gene_families_show_html_erb___277042720_17231010160'
app/views/gene_families/show.html.erb:92:in `each'
app/views/gene_families/show.html.erb:92:in `_app_views_gene_families_show_html_erb___277042720_17231010160'
ruby/1.8/gems/actionpack-3.2.6/lib/action_view/template.rb:145:in `send'
ruby/1.8/gems/actionpack-3.2.6/lib/action_view/template.rb:145:in `render'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/notifications.rb:125:in `instrument'
ruby/1.8/gems/actionpack-3.2.6/lib/action_view/template.rb:143:in `render'
ruby/1.8/gems/actionpack-3.2.6/lib/action_view/renderer/template_renderer.rb:47:in `render_template'
ruby/1.8/gems/actionpack-3.2.6/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/notifications.rb:123:in `instrument'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/notifications.rb:123:in `instrument'
ruby/1.8/gems/actionpack-3.2.6/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
ruby/1.8/gems/actionpack-3.2.6/lib/action_view/renderer/template_renderer.rb:46:in `render_template'
ruby/1.8/gems/actionpack-3.2.6/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
ruby/1.8/gems/actionpack-3.2.6/lib/action_view/renderer/template_renderer.rb:45:in `render_template'
ruby/1.8/gems/actionpack-3.2.6/lib/action_view/renderer/template_renderer.rb:18:in `render'
ruby/1.8/gems/actionpack-3.2.6/lib/action_view/renderer/renderer.rb:36:in `render_template'
ruby/1.8/gems/actionpack-3.2.6/lib/action_view/renderer/renderer.rb:17:in `render'
ruby/1.8/gems/actionpack-3.2.6/lib/abstract_controller/rendering.rb:110:in `_render_template'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/streaming.rb:225:in `_render_template'
ruby/1.8/gems/actionpack-3.2.6/lib/abstract_controller/rendering.rb:103:in `render_to_body'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
ruby/1.8/gems/actionpack-3.2.6/lib/abstract_controller/rendering.rb:88:in `render'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/rendering.rb:16:in `render'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/instrumentation.rb:40:in `render'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/usr/local/lib/ruby/1.8/benchmark.rb:308:in `realtime'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/core_ext/benchmark.rb:5:in `ms'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/instrumentation.rb:40:in `render'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
ruby/1.8/gems/thinking-sphinx-2.0.12/lib/thinking_sphinx/action_controller.rb:12:in `cleanup_view_runtime'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/instrumentation.rb:39:in `render'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/mime_responds.rb:196:in `respond_to'
app/controllers/gene_families_controller.rb:178:in `show'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
ruby/1.8/gems/actionpack-3.2.6/lib/abstract_controller/base.rb:167:in `process_action'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/rendering.rb:10:in `process_action'
ruby/1.8/gems/actionpack-3.2.6/lib/abstract_controller/callbacks.rb:18:in `process_action'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:414:in `_run__1468902388__process_action__453433196__callbacks'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `send'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `__run_callback'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `send'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `run_callbacks'
ruby/1.8/gems/actionpack-3.2.6/lib/abstract_controller/callbacks.rb:17:in `process_action'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/rescue.rb:29:in `process_action'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/notifications.rb:123:in `instrument'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/notifications.rb:123:in `instrument'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/params_wrapper.rb:206:in `process_action'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
ruby/1.8/gems/actionpack-3.2.6/lib/abstract_controller/base.rb:121:in `process'
ruby/1.8/gems/actionpack-3.2.6/lib/abstract_controller/rendering.rb:45:in `process'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal.rb:203:in `dispatch'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
ruby/1.8/gems/actionpack-3.2.6/lib/action_controller/metal.rb:246:in `action'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/routing/route_set.rb:73:in `call'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/routing/route_set.rb:36:in `call'
ruby/1.8/gems/journey-1.0.4/lib/journey/router.rb:68:in `call'
ruby/1.8/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
ruby/1.8/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/routing/route_set.rb:600:in `call'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
ruby/1.8/gems/rack-1.4.1/lib/rack/etag.rb:23:in `call'
ruby/1.8/gems/rack-1.4.1/lib/rack/conditionalget.rb:25:in `call'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/head.rb:14:in `call'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/flash.rb:242:in `call'
ruby/1.8/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in `context'
ruby/1.8/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in `call'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/cookies.rb:338:in `call'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/query_cache.rb:64:in `call'
ruby/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `_run__397314981__call__4__callbacks'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `send'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `__run_callback'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `send'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `run_callbacks'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
ruby/1.8/gems/railties-3.2.6/lib/rails/rack/logger.rb:26:in `call_app'
ruby/1.8/gems/railties-3.2.6/lib/rails/rack/logger.rb:16:in `call'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/request_id.rb:22:in `call'
ruby/1.8/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
ruby/1.8/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call'
ruby/1.8/gems/activesupport-3.2.6/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
ruby/1.8/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call'
ruby/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/static.rb:62:in `call'
ruby/1.8/gems/railties-3.2.6/lib/rails/engine.rb:479:in `call'
ruby/1.8/gems/railties-3.2.6/lib/rails/application.rb:220:in `call'
ruby/1.8/gems/rack-1.4.1/lib/rack/content_length.rb:14:in `call'
ruby/1.8/gems/railties-3.2.6/lib/rails/rack/log_tailer.rb:17:in `call'
ruby/1.8/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in `service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
ruby/1.8/gems/rack-1.4.1/lib/rack/handler/webrick.rb:13:in `run'
ruby/1.8/gems/rack-1.4.1/lib/rack/server.rb:265:in `start'
ruby/1.8/gems/railties-3.2.6/lib/rails/commands/server.rb:70:in `start'
ruby/1.8/gems/railties-3.2.6/lib/rails/commands.rb:55
ruby/1.8/gems/railties-3.2.6/lib/rails/commands.rb:50:in `tap'
ruby/1.8/gems/railties-3.2.6/lib/rails/commands.rb:50
script/rails:6:in `require'
script/rails:6
If you updated to 3.2.3 or higher, this might be caused by the new default approach to enforce whitelisting of attributes for mass-assignment. See the beginning of the release notes. It's hard to tell if this is the cause of your error though without seeing the actual code that raises it.

Resources