Hi!
Ruby files from the lib directory don’t automaticaly loaded/required.
I tried adding string:
config.autoload_paths += %W(#{config.root}/lib)
to my application.rb file but it doesn’t work too.
Second problem with ‘require’ files (libs or modules). At the first
request to the application necessary files includes. But at the
following requests it doesn’t occur. Partially this problem can be
decided if to use ‘include’ instead ‘require’ but it’s bad solution :(
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.