c undefined method `' for #<MyController:0x5b776b6e> - ruby-on-rails

I have a server with around 50 request per second. And I am getting randomly NoMethodError (with very low frequency). The same http request causing NoMethodError works fine after restarting server.
Maximum I could debug is Controller is looking for a action like "" (0 length string).
Is around_filter for Application controller buggy?
Here is the backtrace:
NoMethodError error_message="undefined method `' for #<Dash::V2::MyController:0x5b776b6e>
/gems/gems/actionpack-3.2.11/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/gems/gems/actionpack-3.2.11/lib/abstract_controller/base.rb:167:in `process_action'
/gems/gems/actionpack-3.2.11/lib/action_controller/metal/rendering.rb:10:in `process_action'
/gems/gems/actionpack-3.2.11/lib/abstract_controller/callbacks.rb:18:in `process_action'
/gems/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:429:in `_run__238585032__process_action__1257768870__callbacks'
/gems/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:225:in `_conditional_callback_around_1215'
app/controllers/application_controller.rb:90:in `lagging_flag'
/gems/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:224:in `_conditional_callback_around_1215'
/gems/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:428:in `_run__238585032__process_action__1257768870__callbacks'
/gems/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `__run_callback'
/gems/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:390:in `_run_process_action_callbacks'
/gems/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'
/gems/gems/actionpack-3.2.11/lib/abstract_controller/callbacks.rb:17:in `process_action'
/gems/gems/actionpack-3.2.11/lib/action_controller/metal/rescue.rb:29:in `process_action'
/gems/gems/actionpack-3.2.11/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/gems/gems/activesupport-3.2.11/lib/active_support/notifications.rb:123:in `instrument'
/gems/gems/activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/gems/gems/activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb:19:in `instrument'
/gems/gems/activesupport-3.2.11/lib/active_support/notifications.rb:123:in `instrument'
/gems/gems/actionpack-3.2.11/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/gems/gems/actionpack-3.2.11/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/gems/gems/activerecord-3.2.11/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/gems/gems/actionpack-3.2.11/lib/abstract_controller/base.rb:121:in `process'
/gems/gems/actionpack-3.2.11/lib/abstract_controller/rendering.rb:45:in `process'
/gems/gems/actionpack-3.2.11/lib/action_controller/metal.rb:203:in `dispatch'
/gems/gems/actionpack-3.2.11/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/gems/gems/actionpack-3.2.11/lib/action_controller/metal.rb:246:in `action'
org/jruby/RubyProc.java:281:in `call'
/gems/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/gems/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:36:in `call'
/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in `call'
org/jruby/RubyArray.java:1613:in `each'
/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/gems/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:601:in `call'
/gems/bundler/gems/responseable-eac8dfa003a4/lib/responseable/server_details.rb:12:in `call'
/gems/gems/actionpack-3.2.11/lib/action_dispatch/middleware/head.rb:14:in `call'
/gems/gems/actionpack-3.2.11/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/gems/bundler/gems/responseable-eac8dfa003a4/lib/responseable/json_exception_handler.rb:17:in `call'
/gems/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/gems/bundler/gems/rupert-e82e719b3f0c/lib/rupert.rb:23:in `call'
/gems/gems/actionpack-3.2.11/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
/gems/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:408:in `_run__332066903__call__477376212__callbacks'
/gems/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `__run_callback'
/gems/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:390:in `_run_call_callbacks'
/gems/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'
/gems/gems/actionpack-3.2.11/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/gems/gems/actionpack-3.2.11/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/gems/gems/actionpack-3.2.11/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/gems/bundler/gems/responseable-eac8dfa003a4/lib/responseable/request_time_logger.rb:19:in `call'
/gems/gems/activesupport-3.2.11/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/lib/jruby-stdlib-1.7.25.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:295:in `realtime'
/gems/gems/activesupport-3.2.11/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/gems/bundler/gems/responseable-eac8dfa003a4/lib/responseable/request_time_logger.rb:18:in `call'
/gems/bundler/gems/responseable-eac8dfa003a4/lib/responseable/request_time_logger.rb:16:in `call'
/gems/bundler/gems/responseable-eac8dfa003a4/lib/responseable/gc_statistics_logger.rb:14:in `call'
/gems/bundler/gems/responseable-eac8dfa003a4/lib/responseable/gc_statistics_logger.rb:13:in `call'
/gems/gems/railties-3.2.11/lib/rails/rack/logger.rb:32:in `call_app'
/gems/gems/railties-3.2.11/lib/rails/rack/logger.rb:16:in `call'
/gems/gems/activesupport-3.2.11/lib/active_support/tagged_logging.rb:22:in `tagged'
/gems/gems/railties-3.2.11/lib/rails/rack/logger.rb:16:in `call'
/gems/bundler/gems/responseable-eac8dfa003a4/lib/responseable/request_id_generator.rb:33:in `call'
/gems/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
/gems/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
/gems/bundler/gems/responseable-eac8dfa003a4/lib/responseable/log_flusher.rb:9:in `call'
/gems/bundler/gems/responseable-eac8dfa003a4/lib/responseable/middleware_start_header.rb:11:in `call'
/gems/gems/railties-3.2.11/lib/rails/engine.rb:479:in `call'
/gems/gems/railties-3.2.11/lib/rails/application.rb:223:in `call'
file:/lib/jruby-rack-1.1.19.jar!/rack/handler/servlet.rb:22:in `call'
Brief of ApplicationController:
around_filter :lagging_flag
def lagging_flag
if params[:lagging] && params[:lagging].is_a?( Hash )
Feature.override_lagging_config(params[:lagging]) do
yield
end
else
yield # => line number 90
end
end
Edit:
The logs says:
Processing by Dash::V2::MyController# as JSON
It implies request is routed to '' action. How is it possible?

Related

ActiveStorage S3 file upload undefined keyword content_type

I'm encountering an issue with ActiveStorage while uploading a file to S3.
I get an ArgumentError (unknown keyword: content_type) in active_storage/service/s3_service.rb and can't find the source of the issue.
Stacktrace:
ArgumentError: unknown keyword: content_type
from active_storage/service/s3_service.rb:19:in `upload'
from active_storage/blob.rb:155:in `upload'
from active_storage/blob.rb:53:in `block in build_after_upload'
from active_storage/blob.rb:48:in `tap'
from active_storage/blob.rb:48:in `build_after_upload'
from active_storage/blob.rb:61:in `create_after_upload!'
from active_storage/attached.rb:23:in `create_blob_from'
from active_storage/attached/one.rb:24:in `attach'
from app/controllers/admin/venues_controller.rb:48:in `update'
from action_controller/metal/basic_implicit_render.rb:6:in `send_action'
from abstract_controller/base.rb:194:in `process_action'
from action_controller/metal/rendering.rb:30:in `process_action'
from abstract_controller/callbacks.rb:42:in `block in process_action'
from active_support/callbacks.rb:109:in `block in run_callbacks'
from raven/integrations/rails/controller_transaction.rb:7:in `block in included'
from active_support/callbacks.rb:118:in `instance_exec'
from active_support/callbacks.rb:118:in `block in run_callbacks'
from active_support/callbacks.rb:136:in `run_callbacks'
from abstract_controller/callbacks.rb:41:in `process_action'
from action_controller/metal/rescue.rb:22:in `process_action'
from action_controller/metal/instrumentation.rb:34:in `block in process_action'
from active_support/notifications.rb:168:in `block in instrument'
from active_support/notifications/instrumenter.rb:23:in `instrument'
from active_support/notifications.rb:168:in `instrument'
from action_controller/metal/instrumentation.rb:32:in `process_action'
from action_controller/metal/params_wrapper.rb:256:in `process_action'
from active_record/railties/controller_runtime.rb:24:in `process_action'
from abstract_controller/base.rb:134:in `process'
from action_view/rendering.rb:32:in `process'
from action_controller/metal.rb:191:in `dispatch'
from action_controller/metal.rb:252:in `dispatch'
from action_dispatch/routing/route_set.rb:52:in `dispatch'
from action_dispatch/routing/route_set.rb:34:in `serve'
from action_dispatch/journey/router.rb:52:in `block in serve'
from action_dispatch/journey/router.rb:35:in `each'
from action_dispatch/journey/router.rb:35:in `serve'
from action_dispatch/routing/route_set.rb:840:in `call'
from skylight/core/probes/action_dispatch/routing/route_set.rb:14:in `block in call'
from skylight/core/fanout.rb:25:in `instrument'
from skylight/core/probes/action_dispatch/routing/route_set.rb:13:in `call'
from warden/jwt_auth/middleware/token_dispatcher.rb:20:in `call'
from warden/jwt_auth/middleware/revocation_manager.rb:21:in `call'
from rack/builder.rb:153:in `call'
from warden/jwt_auth/middleware.rb:23:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from i18n/js/middleware.rb:14:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from warden/manager.rb:36:in `block in call'
from warden/manager.rb:34:in `catch'
from warden/manager.rb:34:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from rack/tempfile_reaper.rb:15:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from rack/etag.rb:25:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from rack/conditional_get.rb:38:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from rack/head.rb:12:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from action_dispatch/http/content_security_policy.rb:18:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from rack/session/abstract/id.rb:232:in `context'
from rack/session/abstract/id.rb:226:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from action_dispatch/middleware/cookies.rb:670:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from action_dispatch/middleware/callbacks.rb:28:in `block in call'
from active_support/callbacks.rb:98:in `run_callbacks'
from action_dispatch/middleware/callbacks.rb:26:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from action_dispatch/middleware/debug_exceptions.rb:61:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from action_dispatch/middleware/show_exceptions.rb:33:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from rails/rack/logger.rb:38:in `call_app'
from rails/rack/logger.rb:26:in `block in call'
from active_support/tagged_logging.rb:71:in `block in tagged'
from active_support/tagged_logging.rb:28:in `tagged'
from active_support/tagged_logging.rb:71:in `tagged'
from rails/rack/logger.rb:26:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from action_dispatch/middleware/remote_ip.rb:81:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from request_store/middleware.rb:19:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from action_dispatch/middleware/request_id.rb:27:in `call'
from skylight/core/probes/action_dispatch/request_id.rb:12:in `call'
from rack/method_override.rb:22:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from rack/runtime.rb:22:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from action_dispatch/middleware/executor.rb:14:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from rack/sendfile.rb:111:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from action_dispatch/middleware/ssl.rb:74:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from raven/integrations/rack.rb:51:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from rack/cors.rb:97:in `call'
from skylight/core/probes/middleware.rb:26:in `call'
from rails/engine.rb:524:in `call'
from puma/configuration.rb:225:in `call'
from puma/server.rb:658:in `handle_request'
from puma/server.rb:472:in `process_client'
from puma/server.rb:332:in `block in run'
from puma/thread_pool.rb:133:in `block in spawn_thread'
The model has one attached logo (an image) and I try to update the model with an image.
has_one_attached :logo
#venue.logo.attach(venue_params[:logo]) if venue_params[:logo].present?
I browsed the ActiveStorage source on GitHub but I can't find the issue with the argument.
In advance, thank you very much!

Rails 4 Unknown Format error

Im trying to create a user but when I submit it I get the error. I set json as the default format in the users controller and in my routes, however I still get this error. Im running Rails 4.2.2 and ruby 2.2.1
ActionController::UnknownFormat (ActionController::UnknownFormat):
Users Controller
class Api::V1::UsersController < ApplicationController
respond_to :json
def show
respond_with User.find(params[:id])
end
def create
user = User.new(user_params)
if user.save
render json: user, status: 201, location: [:api, user]
else
render json: { errors: user.errors }, status: 422
end
end
def update
user = User.find(params[:id])
if user.update(user_params)
render json: user, status: 200, location: [:api, user]
else
render json: { errors: user.errors }, status: 422
end
end
def destroy
user = User.find(params[:id])
user.destroy
head 204
end
private
def user_params
params.require(:user).permit(:email, :password, :password_confirmation)
end
end
Routes
require 'api_constraints'
Rails.application.routes.draw do
devise_for :users
namespace :api, defaults: { format: :json },
constraints: { subdomain: 'api' }, path: '/' do
scope module: :v1,
constraints: ApiConstraints.new(version: 1, default: true) do
resources :users, :only => [:show, :create, :update, :destroy]
end
end
end
Log
Processing by Devise::RegistrationsController#create as JSON
Parameters: {"user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "email"=>"example#gmail.com"}, "registration"=>{"user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "email"=>"pilon24#icloud.com"}}}
Can't verify CSRF token authenticity
MONGODB | Adding localhost:27017 to the cluster.
MONGODB | localhost:27017 | quickalertapi_development.find | STARTED | {"find"=>"users", "filter"=>{"email"=>"example#gmail.com"}, "projection"=>{"_id"=>1}, "limit"=>1}
MONGODB | localhost:27017 | quickalertapi_development.find | SUCCEEDED | 0.044546s
MONGODB | localhost:27017 | quickalertapi_development.insert | STARTED | {"insert"=>"users", "documents"=>[{"_id"=>BSON::ObjectId('57570c29dd4736cc49ddcdfc'), "email"=>"example#gmail.com", "encrypted_password"=>"$2a$11$1NFccmBD10pUW59b2TQ.9ezJPQkmdnrBoEzaq/Sdl9T5K7miH62/a", "sign_in_count"=>0, "updated_at"=>2016-06-07 18:...
MONGODB | localhost:27017 | quickalertapi_development.insert | SUCCEEDED | 0.009481999999999999s
MONGODB | localhost:27017 | quickalertapi_development.update | STARTED | {"update"=>"users", "updates"=>[{"q"=>{"_id"=>BSON::ObjectId('57570c29dd4736cc49ddcdfc')}, "u"=>{"$set"=>{"last_sign_in_at"=>2016-06-07 18:02:17 UTC, "current_sign_in_at"=>2016-06-07 18:02:17 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>...
MONGODB | localhost:27017 | quickalertapi_development.update | SUCCEEDED | 0.012626s
Completed 406 Not Acceptable in 371ms
ActionController::UnknownFormat (ActionController::UnknownFormat):
responders (2.2.0) lib/action_controller/respond_with.rb:207:in `respond_with'
devise (4.1.1) app/controllers/devise/registrations_controller.rb:23:in `create'
actionpack (4.2.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.2.3) lib/abstract_controller/base.rb:198:in `process_action'
actionpack (4.2.3) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.2.3) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
activesupport (4.2.3) lib/active_support/callbacks.rb:115:in `call'
activesupport (4.2.3) lib/active_support/callbacks.rb:115:in `call'
activesupport (4.2.3) lib/active_support/callbacks.rb:553:in `block (2 levels) in compile'
activesupport (4.2.3) lib/active_support/callbacks.rb:503:in `call'
activesupport (4.2.3) lib/active_support/callbacks.rb:503:in `call'
activesupport (4.2.3) lib/active_support/callbacks.rb:88:in `run_callbacks'
actionpack (4.2.3) lib/abstract_controller/callbacks.rb:19:in `process_action'
actionpack (4.2.3) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.2.3) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
activesupport (4.2.3) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (4.2.3) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.2.3) lib/active_support/notifications.rb:164:in `instrument'
actionpack (4.2.3) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.2.3) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
actionpack (4.2.3) lib/abstract_controller/base.rb:137:in `process'
actionview (4.2.3) lib/action_view/rendering.rb:30:in `process'
actionpack (4.2.3) lib/action_controller/metal.rb:196:in `dispatch'
actionpack (4.2.3) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.2.3) lib/action_controller/metal.rb:237:in `block in action'
actionpack (4.2.3) lib/action_dispatch/routing/route_set.rb:76:in `call'
actionpack (4.2.3) lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
actionpack (4.2.3) lib/action_dispatch/routing/route_set.rb:45:in `serve'
actionpack (4.2.3) lib/action_dispatch/routing/mapper.rb:49:in `serve'
actionpack (4.2.3) lib/action_dispatch/journey/router.rb:43:in `block in serve'
actionpack (4.2.3) lib/action_dispatch/journey/router.rb:30:in `each'
actionpack (4.2.3) lib/action_dispatch/journey/router.rb:30:in `serve'
actionpack (4.2.3) lib/action_dispatch/routing/route_set.rb:821:in `call'
warden (1.2.6) lib/warden/manager.rb:35:in `block in call'
warden (1.2.6) lib/warden/manager.rb:34:in `catch'
warden (1.2.6) lib/warden/manager.rb:34:in `call'
rack (1.6.4) lib/rack/etag.rb:24:in `call'
rack (1.6.4) lib/rack/conditionalget.rb:38:in `call'
rack (1.6.4) lib/rack/head.rb:13:in `call'
actionpack (4.2.3) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.2.3) lib/action_dispatch/middleware/flash.rb:260:in `call'
rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.2.3) lib/action_dispatch/middleware/cookies.rb:560:in `call'
actionpack (4.2.3) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.2.3) lib/active_support/callbacks.rb:84:in `run_callbacks'
actionpack (4.2.3) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.2.3) lib/action_dispatch/middleware/reloader.rb:73:in `call'
actionpack (4.2.3) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
actionpack (4.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.2.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.2.3) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.2.3) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.2.3) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.2.3) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.2.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
rack (1.6.4) lib/rack/runtime.rb:18:in `call'
activesupport (4.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
rack (1.6.4) lib/rack/lock.rb:17:in `call'
actionpack (4.2.3) lib/action_dispatch/middleware/static.rb:116:in `call'
rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
railties (4.2.3) lib/rails/engine.rb:518:in `call'
railties (4.2.3) lib/rails/application.rb:165:in `call'
/Users/Phil/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:155:in `handle'
/Users/Phil/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:109:in `rescue in block (2 levels) in start'
/Users/Phil/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:106:in `block (2 levels) in start'
/Users/Phil/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:96:in `each'
/Users/Phil/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:96:in `block in start'
/Users/Phil/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:76:in `loop'
/Users/Phil/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:76:in `start'
/Users/Phil/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:12:in `run'
/Users/Phil/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/bin/nack_worker:4:in `<main>'
Rendered /Users/Phil/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms)
Rendered /Users/Phil/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.1ms)
Rendered /Users/Phil/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
Rendered /Users/Phil/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (115.4ms)

App error, pushed to heroku Missing template

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

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.

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