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

**URL:** <https://www.ruby-forum.com/t/override-or-delete-the-layouts-that-are-generated-by-scaffold-generated-code/158810>\
**Category:** Rails\
**Created:** [January 28, 2009, 10:50am UTC](https://www.ruby-forum.com/t/override-or-delete-the-layouts-that-are-generated-by-scaffold-generated-code/158810 "2009-01-28T10:50:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marksu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@Marksu](https://www.ruby-forum.com/u/Marksu)\
**Post date:** [January 28, 2009, 10:50am UTC](https://www.ruby-forum.com/t/override-or-delete-the-layouts-that-are-generated-by-scaffold-generated-code/158810/1 "2009-01-28T10:50:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Marksu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@Marksu](https://www.ruby-forum.com/u/Marksu)\
**Post date:** [January 28, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/override-or-delete-the-layouts-that-are-generated-by-scaffold-generated-code/158810/2 "2009-01-28T15:40:15Z")

</div>

Are you pointing your scaffolded controllers at the application layout?

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

blah blah blah  
end
