Saturday, September 11, 2010

Rails 3 Doesn't Autoload Modules In Lib

Rails 3 doesn’t autoload modules/code in lib by default. To fix it add the following code to your config/application.rb.
config.autoload_paths += %W(#{config.root}/lib)

1 comment:

Breen said...

hello... i tried this.., but still my application is not getting run... This is my error "undefined method `human_date_accessor' for #". pls suggest some more steps..