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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Hi! I fixed this problems> Ruby files from the lib directory don’t automaticaly loaded/required.The problem consisted in wrong files name.> 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 :(It is necessary to create a file with needed requires in the ''initializers'' folder -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.