The lib directory is included by rails automatically, so any file in there will be included. If you put it elsewhere you'll have to specifically require them yourself.
On Nov 11, 11:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thank you for the response. > > I am practicing on v1.7 and it works fine. But, if I move the code > from components to comp dir in lib, the controller can not fine those > fine any more. If I put those files in lib directly, it woks fine > again. How can I maintain a structure of directories in Rails? > > Thanks, > > - > > On Nov 11, 4:15 pm, jemminger <[EMAIL PROTECTED]> wrote: > > > the "components" dir is deprecated and removed in v2.0+ AFAIK > > > you'd be better off using the lib dir or making a plugin. > > > On Nov 11, 1:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > wrote: > > > > All, > > > > This is the first time to play on Rails application. Simple questions: > > > where to locate/store my own *.rb, and *.txt files in my Rails app? > > > I put my *.rb in the components folder so that controllers can see > > > them without problems. Is this the right place to do that? > > > But I may not know where to put *.txt files and how to locate them in > > > controllers. > > > > Thank you in advance. > > > -- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

