Marksu
2009-Jan-28 01:42 UTC
Override or delete the layouts that are generated by scaffold generated code?
Is it possible to ‘override’ or remove the layouts that are generated by scaffold generated code? I have a application.html.erb layout that works perfectly with my CSS/ DIV based navigation and all I want to do is create some CRUD pages for a couple of database tables. But I want them to live in the application template that I have already created… I''ve tried deleting the scaffold layouts from the app/views/layouts and I get an error from WEBrick looking for the StyleSheets?? ActionController::UnknownAction (No action responded to stylesheets): I''m using Rails 2.0.2 Thanks in advance! Marksu --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ar Chron
2009-Jan-28 14:40 UTC
Re: Override or delete the layouts that are generated by scaffold generated code?
Are you pointing your scaffolded controllers at the application layout? class ScaffoldedController < ApplicationController layout "mylayout.html.erb" blah blah blah end -- 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 -~----------~----~----~----~------~----~------~--~---