hi all is there a simple solution to change the CRUD layout using only the scaffold method (without generate scaffold)? tnx -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yea but it involves you changing the templates. If you freeze your gems (rake freeze:gems) and then go into the vendor/rails folder, look under actionpack/action_controller/templates/scaffolds Change them there. (Just did this the other day!) On 1/10/07, j0sh <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > hi all > is there a simple solution to change the CRUD layout using only the > scaffold method (without generate scaffold)? > > tnx > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Brian Hogan wrote:> Yea but it involves you changing the templates. If you freeze your gems > (rake freeze:gems) and then go into the vendor/rails folder, look under > > actionpack/action_controller/templates/scaffolds > > Change them there. > > (Just did this the other day!)tnx i''ll try ;-) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Brian Hogan wrote:> Yea but it involves you changing the templates. If you freeze your gems > (rake freeze:gems) and then go into the vendor/rails folder, look under > > actionpack/action_controller/templates/scaffolds > > Change them there. > > (Just did this the other day!)ops! when i try to freeze the gems this is the output: rake aborted! Don''t know how to build task ''gems:freeze'' i didn''t found help in google :-( -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Giuseppe Milo wrote:> ops! when i try to freeze the gems this is the output: > > rake aborted! > Don''t know how to build task ''gems:freeze'' > > i didn''t found help in google :-("rake rails:gems:freeze" work good but if i change the templates i can''t show my modifies in rails... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Giuseppe Milo wrote:> Giuseppe Milo wrote: >> ops! when i try to freeze the gems this is the output: >> >> rake aborted! >> Don''t know how to build task ''gems:freeze'' >> >> i didn''t found help in google :-( > > "rake rails:gems:freeze" work good but if i change the templates i can''t > show my modifies in rails...Giuseppe Milo wrote:> Giuseppe Milo wrote:> > "rake rails:gems:freeze" work good but if i change the templates i can''t > show my modifies in rails...Changes to templates will not automatically"back-port" to previously generated code of course. Are you actually saying that your template changes are not being used when you generate new models and controllers in the modified project? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
>> Giuseppe Milo wrote: >> "rake rails:gems:freeze" work good but if i change the templates i can''t >> show my modifies in rails... > > Changes to templates will not automatically"back-port" to previously > generated code of course. Are you actually saying that your template > changes are not being used when you generate new models and controllers > in the modified project?yes... but i created a new application and now templates are correct ;-) tnx -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---