# Rails 2.0: Scaffolding

**URL:** <https://www.ruby-forum.com/t/rails-2-0-scaffolding/138214>\
**Category:** Rails\
**Created:** [May 21, 2008, 4:23am UTC](https://www.ruby-forum.com/t/rails-2-0-scaffolding/138214 "2008-05-21T04:23:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![steveluscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3bc359/32.png) [@steveluscher](https://www.ruby-forum.com/u/steveluscher)\
**Post date:** [May 21, 2008, 4:23am UTC](https://www.ruby-forum.com/t/rails-2-0-scaffolding/138214/1 "2008-05-21T04:23:19Z")

</div>

So in the middle of delivering a website to somebody I naively upgraded  
to rails 2.0, and WTF? Why did the scaffolding change so dramatically  
without leaving the old commands around? (insert Zed S. rant here) So  
I figured out how to run the scaffold command and the code it creates is  
TOTALLY different than anything I know. WHY do I need webservices built  
into my stupid little website again, could somebody please remind me?

Anyway, end of rant (but still irritated).

Here comes a real question:

1. Before it was easy to remove a layout for a specific controller and  
use the default application.rhtml layout. In my case the  
application.rhtml has all my navigational tabs and stuff like that. Now  
when I remove the layout created by the scaffold command I get an error.  
Could somebody please tell me how to remove the layout file created my  
this fabulous 2.0 scaffold command?

---

<div class="post-metadata">

**Author:** ![steveluscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3bc359/32.png) [@steveluscher](https://www.ruby-forum.com/u/steveluscher)\
**Post date:** [May 21, 2008, 4:35am UTC](https://www.ruby-forum.com/t/rails-2-0-scaffolding/138214/2 "2008-05-21T04:35:53Z")

</div>

Rails 2.0 is a major version upgrade. You should expect breakages and  
deprecations.

Can you tell us the exact error you get? Can’t help you much without  
that. 🙂

–Jeremy

On Tue, May 20, 2008 at 10:23 PM, Steven L.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Here comes a real question:
> 
> >

–  
[http://jeremymcanally.com/](http://jeremymcanally.com/)  
[http://entp.com](http://entp.com)

Read my books:  
Ruby in Practice ([Ruby in Practice](http://manning.com/mcanally/))  
My free Ruby e-book ([http://humblelittlerubybook.com/](http://humblelittlerubybook.com/))

Or, my blogs:

> **[Site not found · DreamHost](http://mrneighborly.com)**
>
> The owner of this domain has not yet uploaded their website.

[http://rubyinpractice.com](http://rubyinpractice.com)

---

<div class="post-metadata">

**Author:** ![steveluscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3bc359/32.png) [@steveluscher](https://www.ruby-forum.com/u/steveluscher)\
**Post date:** [May 21, 2008, 5:52am UTC](https://www.ruby-forum.com/t/rails-2-0-scaffolding/138214/3 "2008-05-21T05:52:14Z")

</div>

Guess what? I figured it out. Must have been the venting.

Thanks for the help offer.

---

<div class="post-metadata">

**Author:** ![steveluscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3bc359/32.png) [@steveluscher](https://www.ruby-forum.com/u/steveluscher)\
**Post date:** [May 22, 2008, 11:34am UTC](https://www.ruby-forum.com/t/rails-2-0-scaffolding/138214/4 "2008-05-22T11:34:51Z")

</div>

Steven L. wrote:

> Guess what? I figured it out. Must have been the venting.
> 
> Thanks for the help offer.

Hi Steven

Could you perhaps post the solution here? That way, everybody else gets  
to benefit from your new-found knowledge 😉

---

<div class="post-metadata">

**Author:** ![steveluscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3bc359/32.png) [@steveluscher](https://www.ruby-forum.com/u/steveluscher)\
**Post date:** [May 22, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/rails-2-0-scaffolding/138214/5 "2008-05-22T15:54:56Z")

</div>

Rory McKinley wrote:

> Could you perhaps post the solution here? That way, everybody else gets  
> to benefit from your new-found knowledge 😉

Ha ha, are you trying to embarass me? I don’t know the solution. The  
next time I removed the layout file it just started working! The only  
thing I could think of is, initially when I got the error, I had only  
renamed the layout file to something I didn’t think would be picked up.  
Maybe what I renamed it to still got picked up, but not picked up  
correctly.

Maybe when it worked it was because I renamed it to something different  
than the first time I renamed it? Then once it started working I  
removed the layout file.

I know this isn’t much help, but it’s the best I can do.
