With all the talk about acts_as_taggable, and whether it should come in the form of a core mixin, a core generator, or a gem... I thought the idea of generators was to make modifications to your source at code-time, much like the scaffold generator? In other words, anything that can be done dynamically SHOULD, but for those things that need pre-processing, generators are here. Yet now it sounds like people are considering a generator a way to hide semi-core functionality within the core, like a really complicated way to do a "contrib" directory. That itself sounds like a bad idea. Am I misunderstanding? -- Jay Levitt | Wellesley, MA | I feel calm. I feel ready. I can only Faster: jay at jay dot fm | conclude that''s because I don''t have a http://www.jay.fm | full grasp of the situation. - Mark Adler
> I thought the idea of generators was to make modifications to your > source at code-time, much like the scaffold generator?Please forgive, perhaps I am confused as well. I thought generators existed to _generate_ code (files), not _modify_ existing code (files). Doesn''t the scaffold generator just blow over any changes you''ve made when re-generating the same scaffold?
i would agree with this. i questioned when people suggested acts_as_taggable should be a generator. its not something that needs be ''generated'' being an acts_as component i see is a perfect fit. personally however i feel the acts_as_taggable mixin noted on davids blog just is not ready/proper/mature enough to be included in the rails core, i explain a little more in detail (kind of) on my blog http://plastik.us On 8/31/05, Kevin Williams <kevwil-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I thought the idea of generators was to make modifications to your > > source at code-time, much like the scaffold generator? > > Please forgive, perhaps I am confused as well. I thought generators existed > to _generate_ code (files), not _modify_ existing code (files). Doesn''t the > scaffold generator just blow over any changes you''ve made when re-generating > the same scaffold? > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Zachery Hostens <zacheryph-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>