App error, pushed to heroku Missing template - ruby-on-rails

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'

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'

Error receiving binary files in Rails 4.2 and Ruby 2.2.0

We were upgrading to Rails 4.2/Ruby 2.2 (from Rails 3.2-stable/Ruby 2.1.5) at work when we realize that something before worked fine now it doesn't.
Receiving a binary file from a external service (Unity app) the error was this one:
ActionView::Template::Error: unknown encoding name - "utf-8"
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:210:in `find'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:210:in `block in tag_multipart_encoding'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:206:in `each'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:206:in `tag_multipart_encoding'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:74:in `block (2 levels) in parse'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:249:in `get_data'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:73:in `block in parse'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:56:in `loop'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:56:in `parse'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart.rb:25:in `parse_multipart'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/request.rb:373:in `parse_multipart'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/request.rb:207:in `POST'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/http/request.rb:308:in `POST'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/http/parameters.rb:14:in `parameters'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/http/filter_parameters.rb:37:in `filtered_parameters'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/views/exception_notifier/_request.text.erb:3:in `__var_www_my_dev_shared_bundle_ruby_______gems_exception_notification_______lib_exception_notifier_views_exception_notifier__request_text_erb___651057998597931832_70129559954080'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/template.rb:145:in `block in render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/template.rb:333:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/template.rb:143:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/partial_renderer.rb:339:in `render_partial'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/partial_renderer.rb:309:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/renderer.rb:47:in `render_partial'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/helpers/rendering_helper.rb:35:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb:9:in `block in __var_www_my_dev_shared_bundle_ruby_______gems_exception_notification_______lib_exception_notifier_views_exception_notifier_exception_notification_text_erb__4040125496682424407_70129560304780'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb:7:in `map'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb:7:in `__var_www_my_dev_shared_bundle_ruby_______gems_exception_notification_______lib_exception_notifier_views_exception_notifier_exception_notification_text_erb__4040125496682424407_70129560304780'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/template.rb:145:in `block in render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/template.rb:333:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/template.rb:143:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/template_renderer.rb:52:in `render_template'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/template_renderer.rb:14:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/renderer.rb:42:in `render_template'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/renderer.rb:23:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/rendering.rb:100:in `_render_template'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/rendering.rb:83:in `render_to_body'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/abstract_controller/rendering.rb:25:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/notifier.rb:87:in `block (2 levels) in exception_notification'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/collector.rb:26:in `custom'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/abstract_controller/collector.rb:10:in `text'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/notifier.rb:87:in `block in exception_notification'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/base.rb:888:in `collect_responses'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/base.rb:828:in `mail'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/notifier.rb:86:in `exception_notification'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/abstract_controller/base.rb:198:in `process_action'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `_run_callbacks'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_process_action_callbacks'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/abstract_controller/callbacks.rb:19:in `process_action'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/abstract_controller/base.rb:137:in `process'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/rendering.rb:30:in `process'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/base.rb:596:in `block in process'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/base.rb:593:in `process'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/base.rb:584:in `initialize'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/message_delivery.rb:25:in `new'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/message_delivery.rb:25:in `__getobj__'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/message_delivery.rb:34:in `message'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/message_delivery.rb:85:in `deliver_now'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/message_delivery.rb:105:in `deliver'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier.rb:42:in `rescue in call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier.rb:34:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/etag.rb:24:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/conditionalget.rb:25:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/head.rb:13:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/flash.rb:260:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:225:in `context'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:220:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activerecord-4.2.0/lib/active_record/query_cache.rb:36:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `_run_callbacks'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/rack/logger.rb:38:in `call_app'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/rack/logger.rb:20:in `block in call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:26:in `tagged'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in `tagged'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/rack/logger.rb:20:in `call'
/home/www/my/dev/releases/20150205135055/config/initializers/quiet_assets.rb:6:in `call_with_quiet_assets'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/methodoverride.rb:22:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/runtime.rb:18:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/sendfile.rb:113:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/home/www/my/dev/releases/20150205135055/lib/ping_monitor.rb:14:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/engine.rb:518:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/application.rb:164:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/railtie.rb:194:in `public_send'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/railtie.rb:194:in `method_missing'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/unicorn-4.4.0/lib/unicorn/http_server.rb:535:in `process_client'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/unicorn-4.4.0/lib/unicorn/http_server.rb:610:in `worker_loop'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/unicorn-4.4.0/lib/unicorn/http_server.rb:491:in `spawn_missing_workers'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/unicorn-4.4.0/lib/unicorn/http_server.rb:141:in `start'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/unicorn-4.4.0/bin/unicorn_rails:209:in `<top (required)>'
/var/www/my/dev/shared/bundle/ruby/2.1.0/bin/unicorn_rails:23:in `load'
/var/www/my/dev/shared/bundle/ruby/2.1.0/bin/unicorn_rails:23:in `<main>'
We use WWWForm.AddBinaryData from Unity side. Encoding: text/html; charset=ASCII-8BIT. Example:
form.AddBinaryData("image", jpegEncoder.GetBytes(), "imageName", "text/html; charset=ASCII-8BIT");
We searched in Rails changelog but we haven't seen anything new related.
Finally we moved to a different approach: this service provides a Base64 string and it works fine (but 30% aprox. weighter), so would be nice if someone has any idea about it.
In case anyone else runs into this, I've forked Rack and fixed it so that this error isn't thrown:
https://github.com/ianhirschfeld/rack
Essentially, I had to manually check the encoding for Unity's funky "utf-8" string and then force it to UTF-8 which Rack handles properly.

How to fix missing Template in Rails 3?

I would like to know how to fix the error below.
My code:
controllers/application_controller.rb
class ApplicationController < ActionController::Base
def home
#app_name = Cache.app_name
respond_to do |format|
format.html {render "application/home"}
end
end
views/application/home.html.erb
<h1>Home</h1>
Error:
Missing template application/home with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :arb, :rabl]}. Searched in: * "/srv/www/intel/releases/20140509010259/app/views" * "/home/deploy/.bundler/intel/ruby/1.9.1/gems/ckeditor-4.0.11/app/views" * "/home/deploy/.bundler/intel/ruby/1.9.1/bundler/gems/active_admin-b41450a52c09/app/views" * "/home/deploy/.bundler/intel/ruby/1.9.1/gems/kaminari-0.15.1/app/views" * "/home/deploy/.bundler/intel/ruby/1.9.1/gems/devise-3.2.4/app/views"
BACKTRACE:
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_view/path_set.rb:58:in `find'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_view/lookup_context.rb:122:in `find'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_view/renderer/abstract_renderer.rb:3:in `find_template'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_view/renderer/template_renderer.rb:34:in `determine_template'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/newrelic_rpm-3.8.0.218/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:157:in `render_with_newrelic'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_view/renderer/renderer.rb:36:in `render_template'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_view/renderer/renderer.rb:17:in `render'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:110:in `_render_template'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/streaming.rb:225:in `_render_template'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:103:in `render_to_body'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:88:in `render'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rendering.rb:16:in `render'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/usr/local/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:39:in `render'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:167:in `process_action'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:447:in `_run__2038047062599410293__process_action__4203207241704581942__callbacks'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:in `block in instrument'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:in `instrument'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/newrelic_rpm-3.8.0.218/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:38:in `block in process_action'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/newrelic_rpm-3.8.0.218/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:336:in `perform_action_with_newrelic_trace'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/newrelic_rpm-3.8.0.218/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:37:in `process_action'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:121:in `process'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:45:in `process'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal.rb:203:in `dispatch'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal.rb:246:in `block in action'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:36:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:608:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/builder.rb:59:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/newrelic_rpm-3.8.0.218/lib/new_relic/rack/error_collector.rb:55:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/newrelic_rpm-3.8.0.218/lib/new_relic/rack/agent_hooks.rb:32:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/newrelic_rpm-3.8.0.218/lib/new_relic/rack/browser_monitoring.rb:27:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-1.4.5/lib/rack/deflater.rb:13:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/flash.rb:242:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/query_cache.rb:64:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `_run__3093961360070573583__call__3302946055201972876__callbacks'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:32:in `call_app'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:in `block in call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/tagged_logging.rb:22:in `tagged'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/static.rb:63:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-timeout-0.0.4/lib/rack/timeout.rb:16:in `block in call'
/usr/local/lib/ruby/1.9.1/timeout.rb:69:in `timeout'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/rack-timeout-0.0.4/lib/rack/timeout.rb:16:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/railties-3.2.18/lib/rails/engine.rb:484:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/railties-3.2.18/lib/rails/application.rb:231:in `call'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/unicorn-4.8.2/lib/unicorn/http_server.rb:572:in `process_client'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/unicorn-4.8.2/lib/unicorn/http_server.rb:666:in `worker_loop'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/unicorn-4.8.2/lib/unicorn/http_server.rb:521:in `spawn_missing_workers'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/unicorn-4.8.2/lib/unicorn/http_server.rb:140:in `start'
/home/deploy/.bundler/intel/ruby/1.9.1/gems/unicorn-4.8.2/bin/unicorn_rails:209:in `'
/home/deploy/.bundler/intel/ruby/1.9.1/bin/unicorn_rails:23:in `load'
/home/deploy/.bundler/intel/ruby/1.9.1/bin/unicorn_rails:23:in `'
Hint: You should not place public methods into your application_controller. Have an extra controller for that and check your routes.rb and view files names:
# in app/controllers/home_controller.rb
class HomeController < ApplicationController
def index
#app_name = Cache.app_name
end
end
# in app/views/home/index.html.erb
<h1>Home of <%= #app_name %></h1>
# in config/routes.rb
root to: 'home#index'
You can use the rails generator to create a new controller to place that. Don't use the Application controller.
For example:
rails g controller home index
This will create a Home controller and an index action and the default files needed. It will also create the routes and assets for you.

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 :)

Wrong number of arguments (1 for 0) after updating from Rails 3.0.3 to Rails 3.0.10 to Rails 3.2.8

I recently upgraded my Rails web app from 3.0.3 to 3.0.10. And got the Wrong Number of arguments (1 for 0) error. I figured I would throw a "hail Mary" pass and hope that upgrading to Rails 3.2.8 would make things better. Not! :-)
I am stumped as to what could have caused this and I am a novice and not able to decipher the stack trace. Here is my stack trace. I'd appreciate some help.
I branched off of my master, so I can always start from scratch again, but I've tried twice so far with the same results.
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in `display'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in `send_action'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in `process_action'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:in `process_action'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:403:in `_run__1653335973__process_action__374356064__callbacks'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `send'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `send'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:in `process_action'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:in `process'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:in `process'
vendor/ruby/1.8/gems/cells-3.8.6/lib/cell/rendering.rb:7:in `render_state'
vendor/ruby/1.8/gems/cells-3.8.6/lib/cell/caching.rb:83:in `render_state'
vendor/ruby/1.8/gems/cells-3.8.6/lib/cell/rendering.rb:105:in `render_cell_state'
vendor/ruby/1.8/gems/cells-3.8.6/lib/cell/rack.rb:27:in `render_cell_state'
vendor/ruby/1.8/gems/cells-3.8.6/lib/cell/rendering.rb:100:in `render_cell_for'
vendor/ruby/1.8/gems/cells-3.8.6/lib/cells/rails.rb:53:in `render_cell'
app/views/home/index.html.erb:1:in `_app_views_home_index_html_erb__617638568_2260825620'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_view/template.rb:145:in `send'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_view/template.rb:145:in `render'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/notifications.rb:125:in `instrument'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_view/template.rb:143:in `render'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:47:in `render_template'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in `instrument'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in `instrument'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:46:in `render_template'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:45:in `render_template'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:18:in `render'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_view/renderer/renderer.rb:36:in `render_template'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_view/renderer/renderer.rb:17:in `render'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:110:in `_render_template'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/streaming.rb:225:in `_render_template'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:103:in `render_to_body'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:88:in `render'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:16:in `render'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:40:in `render'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/core_ext/benchmark.rb:5:in `ms'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:40:in `render'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
vendor/ruby/1.8/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:39:in `render'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in `process_action'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in `process_action'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:in `process_action'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in `_run__1183885179__process_action__918435846__callbacks'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `send'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `send'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:in `process_action'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/rescue.rb:29:in `process_action'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in `instrument'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in `instrument'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
vendor/ruby/1.8/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:in `process'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:in `process'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal.rb:203:in `dispatch'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_controller/metal.rb:246:in `action'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:36:in `call'
vendor/ruby/1.8/gems/journey-1.0.4/lib/journey/router.rb:68:in `call'
vendor/ruby/1.8/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
vendor/ruby/1.8/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:600:in `call'
vendor/ruby/1.8/gems/warden-1.2.1/lib/warden/manager.rb:35:in `call'
vendor/ruby/1.8/gems/warden-1.2.1/lib/warden/manager.rb:34:in `catch'
vendor/ruby/1.8/gems/warden-1.2.1/lib/warden/manager.rb:34:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
vendor/ruby/1.8/gems/rack-1.4.1/lib/rack/etag.rb:23:in `call'
vendor/ruby/1.8/gems/rack-1.4.1/lib/rack/conditionalget.rb:25:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/head.rb:14:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/flash.rb:242:in `call'
vendor/ruby/1.8/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in `context'
vendor/ruby/1.8/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/cookies.rb:339:in `call'
vendor/ruby/1.8/gems/activerecord-3.2.8/lib/active_record/query_cache.rb:64:in `call'
vendor/ruby/1.8/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `_run__1199251717__call__4__callbacks'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `send'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `send'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:65:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
vendor/ruby/1.8/gems/railties-3.2.8/lib/rails/rack/logger.rb:26:in `call_app'
vendor/ruby/1.8/gems/railties-3.2.8/lib/rails/rack/logger.rb:16:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/request_id.rb:22:in `call'
vendor/ruby/1.8/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
vendor/ruby/1.8/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call'
vendor/ruby/1.8/gems/activesupport-3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
vendor/ruby/1.8/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call'
vendor/ruby/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/static.rb:62:in `call'
vendor/ruby/1.8/gems/railties-3.2.8/lib/rails/engine.rb:479:in `call'
vendor/ruby/1.8/gems/railties-3.2.8/lib/rails/application.rb:223:in `call'
vendor/ruby/1.8/gems/rack-1.4.1/lib/rack/content_length.rb:14:in `call'
vendor/ruby/1.8/gems/railties-3.2.8/lib/rails/rack/log_tailer.rb:17:in `call'
vendor/ruby/1.8/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in `service'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
vendor/ruby/1.8/gems/rack-1.4.1/lib/rack/handler/webrick.rb:13:in `run'
vendor/ruby/1.8/gems/rack-1.4.1/lib/rack/server.rb:265:in `start'
vendor/ruby/1.8/gems/railties-3.2.8/lib/rails/commands/server.rb:70:in `start'
vendor/ruby/1.8/gems/railties-3.2.8/lib/rails/commands.rb:55
vendor/ruby/1.8/gems/railties-3.2.8/lib/rails/commands.rb:50:in `tap'
vendor/ruby/1.8/gems/railties-3.2.8/lib/rails/commands.rb:50
script/rails:6:in `require'
script/rails:6
Here is the entire error message:
This issue is closed. Answer is that Cells controller methods need to have arguments passed to them.
In my cells controller I should have had a method such as:
def display(quote)
#quote = Quote.first
render
end
Instead what I had (and worked under ruby 1.8.7 and rails 3.0.3) was:
def display
#quote = Quote.first
render
end
My Bug Close! Special thank you to Nick Sutterer who patiently assisted me with this newbie bug!

Resources