[Rails] Re: Ruby on Rails 3 RC and files in lib directory

2010-07-27 Thread stephenjamesmurdoch
sam problem here :( anyone know? I get: uninitialized constant ApplicationController::Authentication Obviously I could just move the methods from my lib/authentication.rb file into application_controller.rb but I'd prefer to see if there's another way first.. On Jul 27, 9:03 am, Nicolas

[Rails] Re: Ruby on Rails 3 RC and files in lib directory

2010-07-27 Thread Nicolas Blanco
Steve Murdoch wrote: sam problem here :( anyone know? I get: uninitialized constant ApplicationController::Authentication Obviously I could just move the methods from my lib/authentication.rb file into application_controller.rb but I'd prefer to see if there's another way first..

[Rails] Re: Ruby on Rails 3 RC and files in lib directory

2010-07-27 Thread stephenjamesmurdoch
Hi Nicolas, i think I've fixed the problem add the following to your application.rb file: # Custom directories with classes and modules you want to be autoloadable. config.autoload_paths += %W(#{config.root}/lib) This code is generated when you create a brand new rails3rc app but

[Rails] Re: Ruby on Rails 3 RC and files in lib directory

2010-07-27 Thread Eric Yen
Hi, Ading config.autoload_paths += %W(#{config.root}/lib) to my application file solved it :) Thank you so much On Jul 27, 5:59 am, stephenjamesmurdoch stephenjamesmurd...@gmail.com wrote: Hi Nicolas, i think I've fixed the problem add the following to your application.rb file:     #