Forums » General Forum »
module problem?
Added by Marc Lee 61 days ago
Hi,
We're having an error with our helpers and it started when we moved the require 'lockdown/init' back from the application_controller to the environment.rb. Was wondering if you have any ideas as to what caused it.
Rails version - 2.0.3
Lockdown - 0.5.20
Thanks!
A copy of SomeHelper has been removed from the module tree but is still active!
vendor/rails/activesupport/lib/active_support/dependencies.rb:239:in `load_missing_constant'
vendor/rails/activesupport/lib/active_support/dependencies.rb:455:in `const_missing'
app/helpers/some_helper.rb:4:in `some_to_dropdown'
app/views/some_forms/_form.html.erb:25:in `_run_erb_47app47views47some_forms47_form46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:655:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:655:in `compile_and_render_template'
vendor/rails/actionpack/lib/action_view/base.rb:369:in `render_template'
vendor/rails/actionpack/lib/action_view/base.rb:318:in `render_file'
vendor/rails/actionpack/lib/action_view/base.rb:333:in `render'
vendor/rails/actionpack/lib/action_view/partials.rb:117:in `render_partial'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:26:in `benchmark'
/usr/local/lib/ruby/1.8/benchmark.rb:308:in `realtime'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:26:in `benchmark'
vendor/rails/actionpack/lib/action_view/partials.rb:116:in `render_partial'
vendor/rails/actionpack/lib/action_view/base.rb:356:in `render'
app/views/some_forms/_new.html.erb:5:in `_run_erb_47app47views47some_forms47_new46html46erb'
vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:249:in `fields_for'
vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:185:in `form_for'
app/views/some_forms/_new.html.erb:2:in `_run_erb_47app47views47some_forms47_new46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:655:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:655:in `compile_and_render_template'
vendor/rails/actionpack/lib/action_view/base.rb:369:in `render_template'
vendor/rails/actionpack/lib/action_view/base.rb:318:in `render_file'
vendor/rails/actionpack/lib/action_view/base.rb:333:in `render'
vendor/rails/actionpack/lib/action_view/partials.rb:117:in `render_partial'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:26:in `benchmark'
/usr/local/lib/ruby/1.8/benchmark.rb:308:in `realtime'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:26:in `benchmark'
vendor/rails/actionpack/lib/action_view/partials.rb:116:in `render_partial'
vendor/rails/actionpack/lib/action_view/base.rb:356:in `render'
app/views/some_forms/new.html.erb:6:in `_run_erb_47app47views47some_forms47new46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:655:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:655:in `compile_and_render_template'
vendor/rails/actionpack/lib/action_view/base.rb:369:in `render_template'
vendor/rails/actionpack/lib/action_view/base.rb:318:in `render_file'
vendor/rails/actionpack/lib/action_controller/base.rb:1101:in `render_for_file'
vendor/rails/actionpack/lib/action_controller/base.rb:836:in `render_with_no_layout'
vendor/rails/actionpack/lib/action_controller/layout.rb:261:in `render_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
vendor/rails/actionpack/lib/action_controller/base.rb:1154:in `default_render'
vendor/rails/actionpack/lib/action_controller/base.rb:1160:in `perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:699:in `call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:691:in `perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
vendor/rails/actionpack/lib/action_controller/caching.rb:678:in `perform_action'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
vendor/rails/actionpack/lib/action_controller/caching.rb:677:in `perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:687:in `process_without_session_management_support'
vendor/rails/actionpack/lib/action_controller/session_management.rb:123:in `process'
vendor/rails/actionpack/lib/action_controller/base.rb:388:in `process'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:171:in `handle_request'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
/usr/local/bin/mongrel_rails:19:in `load'
/usr/local/bin/mongrel_rails:19
Replies
RE: module problem? - Added by Marc Lee 61 days ago
Just to update you,
We did a check and that the problem surfaced when we installed acts_as_audited. Before that, it was working fine. This error only pops up in development as well. Not in test and production where the classes are cached.
Any ideas on how to fix this? Thanks!