Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
NameError in Static pagesController#new
constant ActionView::Base::Subclasses::StaticPagesController not defined
RAILS_ROOT: /home/tim/Documents/test
Application Trace | Framework Trace | Full Trace
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:242:in `remove_const'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:242:in `block (2 levels) in for_controller'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:241:in `class_eval'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:241:in `block in for_controller'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:238:in `initialize'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:238:in `new'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:238:in `for_controller'
/home/tim/Documents/test/vendor/rails/actionpack/lib/abstract_controller/rendering_controller.rb:35:in `view_context'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/compatibility.rb:72:in `template'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/compatibility.rb:76:in `process_action'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/flash.rb:140:in `process_action'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/rescuable.rb:8:in `process_action'
/home/tim/Documents/test/vendor/rails/actionpack/lib/abstract_controller/base.rb:91:in `process'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/filter_parameter_logging.rb:69:in `process'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal.rb:74:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/rack_convenience.rb:15:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal.rb:98:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:440:in `call'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `block in call'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:363:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/string_coercion.rb:25:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/head.rb:9:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/params_parser.rb:19:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb:106:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/callbacks.rb:46:in `block in call'
/home/tim/Documents/test/vendor/rails/activesupport/lib/active_support/new_callbacks.rb:429:in `_run_call_callbacks'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:8:in `synchronize'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:242:in `remove_const'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:242:in `block (2 levels) in for_controller'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:241:in `class_eval'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:241:in `block in for_controller'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:238:in `initialize'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:238:in `new'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:238:in `for_controller'
/home/tim/Documents/test/vendor/rails/actionpack/lib/abstract_controller/rendering_controller.rb:35:in `view_context'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/compatibility.rb:72:in `template'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/compatibility.rb:76:in `process_action'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/flash.rb:140:in `process_action'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/rescuable.rb:8:in `process_action'
/home/tim/Documents/test/vendor/rails/actionpack/lib/abstract_controller/base.rb:91:in `process'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/filter_parameter_logging.rb:69:in `process'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal.rb:74:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/rack_convenience.rb:15:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal.rb:98:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:440:in `call'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `block in call'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:363:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/string_coercion.rb:25:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/head.rb:9:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/params_parser.rb:19:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb:106:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/callbacks.rb:46:in `block in call'
/home/tim/Documents/test/vendor/rails/activesupport/lib/active_support/new_callbacks.rb:429:in `_run_call_callbacks'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11:in `block in call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/static.rb:30:in `call'
/home/tim/Documents/test/vendor/rails/railties/lib/rails/application.rb:26:in `call'
/home/tim/Documents/test/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/content_length.rb:13:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/handler/webrick.rb:46:in `service'
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:242:in `remove_const'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:242:in `block (2 levels) in for_controller'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:241:in `class_eval'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:241:in `block in for_controller'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:238:in `initialize'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:238:in `new'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_view/base.rb:238:in `for_controller'
/home/tim/Documents/test/vendor/rails/actionpack/lib/abstract_controller/rendering_controller.rb:35:in `view_context'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/compatibility.rb:72:in `template'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/compatibility.rb:76:in `process_action'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/flash.rb:140:in `process_action'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/rescuable.rb:8:in `process_action'
/home/tim/Documents/test/vendor/rails/actionpack/lib/abstract_controller/base.rb:91:in `process'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/filter_parameter_logging.rb:69:in `process'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal.rb:74:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal/rack_convenience.rb:15:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/metal.rb:98:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:440:in `call'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `block in call'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'
/home/tim/Documents/test/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:363:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/string_coercion.rb:25:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/head.rb:9:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/params_parser.rb:19:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb:106:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/callbacks.rb:46:in `block in call'
/home/tim/Documents/test/vendor/rails/activesupport/lib/active_support/new_callbacks.rb:429:in `_run_call_callbacks'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:8:in `synchronize'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call'
/home/tim/Documents/test/vendor/rails/actionpack/lib/action_dispatch/middleware/static.rb:30:in `call'
/home/tim/Documents/test/vendor/rails/railties/lib/rails/application.rb:26:in `call'
/home/tim/Documents/test/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/content_length.rb:13:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/handler/webrick.rb:46:in `service'
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
Request
Parameters:
None
Show session dump
---
Response
Headers:
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.