Override or delete the layouts that are generated by scaffold generated code?


#1

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


#2

Are you pointing your scaffolded controllers at the application layout?

class ScaffoldedController < ApplicationController
layout “mylayout.html.erb”

blah blah blah
end