In the current version of Rails (3.2.8), this has been changed in the application.rb file.
The code is currently commented as:
You must update the autoload_paths value. Attempting to modify the old variable load_paths causes this error.
/configuration.rb:85:in `method_missing': undefined method `load_paths' for
for example, for each path to add autoload_paths to the configuration, add a line similar to the following:
config.autoload_paths += %W(
config.autoload_paths accepts an array of paths from which Rails will auto-configure constants. By default, all directories are under the app .
http://guides.rubyonrails.org/configuring.html
From the commentator (hakunin) below:
If the directory is under app/ , you do not need to add it anywhere, it should work only by default (definitely in 3.2.12). Rails has eager_load_paths , which acts like autoload_paths during development and has a high load. All app/* directories are automatically added here.
Jamel Toms Oct 10 '12 at 18:44 2012-10-10 18:44
source share