Rails 2.0: Scaffolding

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 Shaw 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?

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. :slight_smile:

--Jeremy

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

Thanks for the help offer.

Steven Line 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 :wink:

Rory McKinley wrote:

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

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.