Ruby on Rails Thursday, September 30, 2010

I found the problem. It seems Rails 3 is no longer configured for
auto-loading by default. To get the libraries and plugins loaded I
added the following lines to config/application.rb:

config.autoload_paths += %W(#{config.root}/lib)
config.plugin_paths = [File.join(RAILS_ROOT, 'vendor',
'other_plugins')]

More on this on the following pages:
https://rails.lighthouseapp.com/projects/8994/tickets/5218-rails-3-rc-does-not-autoload-from-lib
http://oreilly.com/ruby/excerpts/ruby-advanced-rails/rails-plugins.html

Regards,
Yaron

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment