Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enju leaf claims if config.cache_classes set to false. #9

Closed
chonan opened this issue Dec 20, 2011 · 0 comments

Comments

@chonan
Copy link
Contributor

commented Dec 20, 2011

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 #Class:0x00000002fdead8
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:inindex'
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:inprocess_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:inblock 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:inprocess_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:inblock 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:ininstrument'
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:inprocess_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:inprocess_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:inprocess'
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:indispatch'
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:incall'
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:incall'
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:inblock 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:inrecognize'
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:incall'
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:incall'
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:incall'
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:incall'
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:inblock 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:incall'
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:incall'
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:incall'
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:incall'
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:incontext'
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:incall'
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:incall'
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:incall'
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:incall'
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:incall'
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:incall'
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:incall'
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:incall'
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:incall'
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:inservice'
/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:inrun'
/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

@nabeta nabeta closed this in e7da7b6 Dec 22, 2011

shaolin405mi16 referenced this issue in shaolin405mi16/enju_trunk Jan 28, 2013
Akifumi NAKAMURA
Merge pull request MiraitSystems#9 from shaolin405mi16/issue-4316
issue-4316: システム設定ページから端末設定へのリンク追加
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.