Hi Is it possible to change the files templates used when scaffolding without changing the files in my ruby directory? I want to override it locally without modifying the files in my ruby / gem install. Manuel
scaffoldings werent designed to be a global template for you to simply modify. as most applications dont use very generically templated forms that scaffolds put out. scaffolds were designed to give you a simple baseline ''template'' to work from. dont try to treat it as a global forms template engine of some kind. On 8/9/05, Manuel Holtgrewe <purestorm-nlpEiS6K5uusTnJN9+BGXg@public.gmane.org> wrote:> Hi > > Is it possible to change the files templates used when scaffolding > without changing the files in my ruby directory? I want to override > it locally without modifying the files in my ruby / gem install. > > Manuel > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Zachery Hostens <zacheryph-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Am 10.08.2005 um 10:06 schrieb Zachery Hostens:> scaffoldings werent designed to be a global template for you to simply > modify. as most applications dont use very generically templated > forms that scaffolds put out. > > scaffolds were designed to give you a simple baseline ''template'' to > work from. dont try to treat it as a global forms template engine of > some kind.Of course, I don''t think that. However, I''d like to replace the default "destroy on GET" behaviour and automatically create a "delete" action and link to it from templates. That''s one of the things I always have to add everywhere. Regards Manuel Holtgrewe
Does this help? http://wiki.rubyonrails.com/rails/show/ScaffoldGenerator Manuel Holtgrewe wrote:> > Am 10.08.2005 um 10:06 schrieb Zachery Hostens: > >> scaffoldings werent designed to be a global template for you to simply >> modify. as most applications dont use very generically templated >> forms that scaffolds put out. >> >> scaffolds were designed to give you a simple baseline ''template'' to >> work from. dont try to treat it as a global forms template engine of >> some kind. > > > Of course, I don''t think that. However, I''d like to replace the default > "destroy on GET" behaviour and automatically create a "delete" action > and link to it from templates. > > That''s one of the things I always have to add everywhere. > > Regards > > Manuel Holtgrewe >