Jeff Cohen wrote: > On Nov 18, 10:03�am, Frederick Cheung <[EMAIL PROTECTED]> > wrote: >> >> use require_dependency instead of require. >> >> Fred > > But if the file name follows conventions (so a class named MyToolClass > would go in a file named app/models/my_tool_class.rb or lib/ > my_tool_class.rb), then no require or require_dependency should be > needed and code changes will be automatically reloaded in development > mode. > > If you're not following naming conventions, then do as Fred > suggests :-) > > Jeff > > www.purpleworkshops.com
Many thanks, guys! I put each my class into it's own file in app's lib directory following naming conventions and Voila! After that every change in these files are incorporated immediately without require or require_dependency calls. That's great! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

