Larry Kelly
2005-Jul-27 22:38 UTC
How do I change/extend scafold behaviour w/o changing the library?
Hi, there! I think Rails scaffold generator concept is wonderfull! I find that taking time to write new scaffold generators at the start of an app, saves me a lot of time. Alas, for my current project, I don''t have acces s to the gems libraries. How can I extend the scaffold generator behaviour from within the app itself? Is components the solution? Any examples, tutorials, etc out there that would help me? Thanks, -Larry _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Tobias Luetke
2005-Jul-27 23:57 UTC
Re: How do I change/extend scafold behaviour w/o changing the library?
you can copy it into ~/.rails/generators and start modifying it yourself. I have many different generators living in this directory for all sorts of reoccurring tasks. Works great On 7/27/05, Larry Kelly <ldk2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, there! > > I think Rails scaffold generator concept is wonderfull! I find that taking > time to write new scaffold generators at the start of an app, saves me a lot > of time. Alas, for my current project, I don''t have acces s to the gems > libraries. How can I extend the scaffold generator behaviour from within > the app itself? Is components the solution? Any examples, tutorials, etc > out there that would help me? > > Thanks, > -Larry > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- Tobi http://www.snowdevil.ca - Snowboards that don''t suck http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog
Bill Katz
2005-Jul-28 00:57 UTC
Re: How do I change/extend scafold behaviour w/o changing the library?
The best documentation I found on generators is here: http://wiki.rubyonrails.com/rails/show/UnderstandingGenerators There is a section that elaborates on what Tobias said. -Bill On 7/27/05, Larry Kelly <ldk2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, there! > > I think Rails scaffold generator concept is wonderfull! I find that taking > time to write new scaffold generators at the start of an app, saves me a lot > of time. Alas, for my current project, I don''t have acces s to the gems > libraries. How can I extend the scaffold generator behaviour from within > the app itself? Is components the solution? Any examples, tutorials, etc > out there that would help me? > > Thanks, > -Larry