Hi Z, On Thu, 2009-10-15 at 13:31 -0700, Z wrote: > I'm just getting started with interface design in rails. One thing > I've noticed is that the scaffold process generates a layout for each > object it scaffolds. Is there a way to avoid this?
No. > Or is there a better way to handle the DRY problem created by having > multiple layout files? Just rename the first one 'application.rhtml' or 'application.html.erb' and delete any others created for you as you scaffold in the future. The layout named 'application...' will be used as the default. You can specify different layouts at the controller and/or method level when you want Rails to use something else. HTH, Bill --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

