I had the same problem. There was a library I loaded with require
‘digit_validations’ in environment.rb
then I used it in a model to “include DigitValidations”
digit_validations.rb looked like this:
going to script/console and doing a reload!, showed me that I couldn’t
NameError: cannot remove Object::DiVa
remove_const' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:423:insend’
remove_constant' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:274:inremove_unloadable_constants!’
each' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:274:inremove_unloadable_constants!’
clear' from /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/dispatcher.rb:60:inreset_application!’
I removed the “include DigitValidations” from my models and changed the
source where appropriate.
Hope it helps.
On 2/3/07, Andrew V. [email protected] wrote:
Restarting the server fixes it for another request.
I’m really puzzled by this, and it seems to be happening across my
entire app with most/all associations. Where do I start!?