I noticed on the following wiki page http://wiki.rubyonrails.com/rails/show/Generators that it says new generators should be installed into the scripts/generators directory of your rails app. It seems like it would be better to have a place to put them so that they would be copied into every new rails app that you created. Is this possible and I''m just missing it? Thanks, Carl
On January 28, 2005 4:12 pm, Carl Youngblood wrote:> I noticed on the following wiki page > http://wiki.rubyonrails.com/rails/show/Generators that it says new > generators should be installed into the scripts/generators directory of > your rails app. It seems like it would be better to have a place to put > them so that they would be copied into every new rails app that you > created. Is this possible and I''m just missing it? > > Thanks, > CarlI was told the Rails developers are already working on this issue so that generators can be installed as a RubyGem package. That''s about all I know. James
Never mind. I think I figured it out. The wiki page just wasn''t quite descriptive enough. I didn''t realize that it was telling me how to install a generator into my ruby gems dir already. I''ll try to edit it and make it more clear. Thanks, Carl James Earl wrote:>On January 28, 2005 4:12 pm, Carl Youngblood wrote: > > >>I noticed on the following wiki page >>http://wiki.rubyonrails.com/rails/show/Generators that it says new >>generators should be installed into the scripts/generators directory of >>your rails app. It seems like it would be better to have a place to put >>them so that they would be copied into every new rails app that you >>created. Is this possible and I''m just missing it? >> >>Thanks, >>Carl >> >> > >I was told the Rails developers are already working on this issue so that >generators can be installed as a RubyGem package. That''s about all I know. > >James > >
Why do you want it as part of your app? Generators, at least the way I''ve used them, are a run once sort of thing. You set up your models, scaffolds etc and then flesh them out. The login generator is great, but won''t you just use it once? Shouldn''t your app just contain the code to run your app? Carl Youngblood wrote:> I noticed on the following wiki page > http://wiki.rubyonrails.com/rails/show/Generators that it says new > generators should be installed into the scripts/generators directory of > your rails app. It seems like it would be better to have a place to put > them so that they would be copied into every new rails app that you > created. Is this possible and I''m just missing it? > > Thanks, > Carl > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Daniel Hobe <daniel-Rb441GAJvreWkzVdRvz7FA@public.gmane.org> http://www.nightrunner.com
The next version will support installing of generators into ~/.rails/generators home directory and allows generators to be packaged as gems. The login generator is already available as gem. Just waiting for the generator update. On Fri, 28 Jan 2005 22:30:09 -0800, Daniel Hobe <daniel-Rb441GAJvreWkzVdRvz7FA@public.gmane.org> wrote:> Why do you want it as part of your app? Generators, at least the way > I''ve used them, are a run once sort of thing. You set up your models, > scaffolds etc and then flesh them out. The login generator is great, > but won''t you just use it once? > > Shouldn''t your app just contain the code to run your app? > > > Carl Youngblood wrote: > > I noticed on the following wiki page > > http://wiki.rubyonrails.com/rails/show/Generators that it says new > > generators should be installed into the scripts/generators directory of > > your rails app. It seems like it would be better to have a place to put > > them so that they would be copied into every new rails app that you > > created. Is this possible and I''m just missing it? > > > > Thanks, > > Carl > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > -- > Daniel Hobe <daniel-Rb441GAJvreWkzVdRvz7FA@public.gmane.org> > http://www.nightrunner.com > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Tobi http://www.hieraki.org - Open source book authoring http://blog.leetsoft.com - Technical weblog
Thanks for your reply. After I posted that I realized that generators are put inside the rails gem and not in individual rails apps. Actually that was what I was advocating, even though it was confusing. I didn''t like the idea of putting them in only one of my apps. I wanted to put them in the actual rails installation, which would allow me to use them in future apps without further installation. Apparently that is exactly the way they work. Carl On Jan 28, 2005, at 10:30 PM, Daniel Hobe wrote:> Why do you want it as part of your app? Generators, at least the way > I''ve used them, are a run once sort of thing. You set up your models, > scaffolds etc and then flesh them out. The login generator is great, > but won''t you just use it once? > > Shouldn''t your app just contain the code to run your app?