nabeta/enju_leaf — Issue #9: Enju leaf claims if config.cache_classes set to false.
Author: chonan
Created: 2011-12-20 02:58:57+00:00
State: open

Enju leaf claims if config.cache_classes set to false.

According to config/environments/development.rb config.cache_classes set to false, however that setting causes
NoMethodError in PageController#index.

On test or production environment, that do not reproduce since config.cache_classes turned to true.

---
NoMethodError in PageController#index

undefined method `search' for #
Rails.root: /home/chonan/work/enju_leaf

Application Trace | Framework Trace | Full Trace
vendor/bundler/ruby/1.9.1/gems/activerecord-3.1.3/lib/active_record/base.rb:1088:in `method_missing'
app/controllers/page_controller.rb:27:in `index'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:497:in `_run__3360787112428429125__process_action__2541636672534549801__callbacks'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action'
vendor/bundler/ruby/1.9.1/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal.rb:193:in `dispatch'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `block in action'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `block in call'
vendor/bundler/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `block in recognize'
vendor/bundler/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in `optimized_each'
vendor/bundler/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
vendor/bundler/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
vendor/bundler/ruby/1.9.1/gems/client_side_validations-3.1.3/lib/client_side_validations/middleware.rb:18:in `call'
vendor/bundler/ruby/1.9.1/gems/warden-1.1.0/lib/warden/manager.rb:35:in `block in call'
vendor/bundler/ruby/1.9.1/gems/warden-1.1.0/lib/warden/manager.rb:34:in `catch'
vendor/bundler/ruby/1.9.1/gems/warden-1.1.0/lib/warden/manager.rb:34:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/etag.rb:23:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/conditionalget.rb:25:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
vendor/bundler/ruby/1.9.1/gems/jpmobile-2.0.4/lib/jpmobile/rack/mobile_carrier.rb:13:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:195:in `context'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:190:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call'
vendor/bundler/ruby/1.9.1/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call'
vendor/bundler/ruby/1.9.1/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/reloader.rb:68:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/sendfile.rb:101:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
vendor/bundler/ruby/1.9.1/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/methodoverride.rb:24:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/runtime.rb:17:in `call'
vendor/bundler/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/lock.rb:15:in `call'
vendor/bundler/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in `call'
vendor/bundler/ruby/1.9.1/gems/railties-3.1.3/lib/rails/engine.rb:456:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/content_length.rb:14:in `call'
vendor/bundler/ruby/1.9.1/gems/railties-3.1.3/lib/rails/rack/log_tailer.rb:14:in `call'
vendor/bundler/ruby/1.9.1/gems/rack-1.3.5/lib/rack/handler/webrick.rb:59:in `service'
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
Request

Parameters:

None
Show session dump

_csrf_token: "v5TyK2uFQLmtg8p3VmpDORGL9z/NqfKuK9/xHkd6lDc="
csrf: "v5TyK2uFQLmtg8p3VmpDORGL9z/NqfKuK9/xHkd6lDc="
locale: :ja
manifestation_ids: nil
params: nil
query: nil
search_params: nil
tracking: {"HTTP_USER_AGENT"=>"cb1e6a5800d02d58ebf5955fb4924711bdf3575c", "HTTP_ACCEPT_ENCODING"=>"ed2b3ca90a4e723402367a1d17c8b28392842398", "HTTP_ACCEPT_LANGUAGE"=>"86ee8a4e4ccb4f4ca214320a24f93660423eb700"}
Show env dump

GATEWAY_INTERFACE: "CGI/1.1"
HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_CHARSET: "Shift_JIS,utf-8;q=0.7,*;q=0.3"
HTTP_ACCEPT_ENCODING: "gzip,deflate,sdch"
HTTP_ACCEPT_LANGUAGE: "ja,en-US;q=0.8,en;q=0.6"
REMOTE_ADDR: "192.168.108.222"
REMOTE_HOST: "192.168.108.222"
SERVER_NAME: "192.168.108.131"
SERVER_PROTOCOL: "HTTP/1.1"
Response

Headers:

None