Adriano Dias da Silva wrote: > Good afternoon everyone. > > Using the command: > script/generate scaffold User name:string login:string password:string > It created a layout in html standard for CRUD in app/views/users. > > I wonder if you can change this layout (html) standard > that is generated by scaffold, for example by placing the default > layout of > my system, so I do not need to change the layout of each CRUD > individually. > > Is it possible? If possible please suggest me a tutorial or me > describe step-by-step how to proceed to effect that change. > > Thank you. > > Best Regards ... > Adriano Dias da Silva
Greetings I would recommend to take a look at this : http://railscasts.com/episodes/58-how-to-make-a-generator you can create your custom generator exactly the way you like so you can use your own scaffold layout. Also, in Ruby in Rails 3 : http://railscasts.com/episodes/216-generators-in-rails-3 At last but not least, have a look at this gem: http://patshaughnessy.net/view_mapper -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

