hi all, When I generate a rails app, there is a lib/ folder underneath it. Now what is exactly this lib/ folder for? When I put the rack library there, it is not scanned by RoR. Actually to expand this matter, I want to be able to put non-Rails plugin to be available for Rails and my app (e.g including rack, arel etc). But it seems RoR does not scan it. So what is it exactly for? Kind regards. -- Certified Scrum Master http://blog.scrum8.com | http://jobs.scrum8.com | http://twitter.com/scrum8
On Tue, Oct 20, 2009 at 3:26 AM, Joshua Partogi <joshua.partogi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> > hi all, > > When I generate a rails app, there is a lib/ folder underneath it. Now > what is exactly this lib/ folder for? When I put the rack library > there, it is not scanned by RoR. Actually to expand this matter, I > want to be able to put non-Rails plugin to be available for Rails and > my app (e.g including rack, arel etc). But it seems RoR does not scan > it. So what is it exactly for? > > Kind regards. > > -- > Certified Scrum Master > http://blog.scrum8.com | http://jobs.scrum8.com | > http://twitter.com/scrum8 > >Joshua, I would recommend reading p. 225 - 226 of "Agile Web Development with Rails 3rd". -Conrad> > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I think Conrad meant pages 255-256. Simply put, lib/ is where you put code (or subdirectories with code) that does not normally live in models, views, or controllers. On Oct 20, 7:10 am, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Tue, Oct 20, 2009 at 3:26 AM, Joshua Partogi <joshua.part...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > > > > > > > hi all, > > > When I generate a rails app, there is a lib/ folder underneath it. Now > > what is exactly this lib/ folder for? When I put the rack library > > there, it is not scanned by RoR. Actually to expand this matter, I > > want to be able to put non-Rails plugin to be available for Rails and > > my app (e.g including rack, arel etc). But it seems RoR does not scan > > it. So what is it exactly for? > > > Kind regards. > > > -- > > Certified Scrum Master > >http://blog.scrum8.com|http://jobs.scrum8.com| > >http://twitter.com/scrum8 > > Joshua, I would recommend reading p. 225 - 226 of "Agile Web Development > with > Rails 3rd". > > -Conrad > >