I have a simple class in a file in lib/simple.rb
.
In the console (rails c
) I have a couple of problems:
Rails seems unable to load the file even though
application.rb
containsconfig.autoload_paths += %W(#{config.root}/lib/**)
. How to make Rails 3.2 behave like Rails 2.x used to (I never had problems in Rails 2.x with this autoload stuff - Rails 3 seems like a step back :( )If I make a change to
simple.rb
and callreload!
in console, it does not reload the file. I have to doload "#{Rails.root}/lib/simple.rb
to make it reload. Is there a way to makereload!
work like it used to in Rails 2.x? i.e. just make it reload all files without having to useload
at all?