# Scaffold based CMS

**URL:** <https://www.ruby-forum.com/t/scaffold-based-cms/106513>\
**Category:** Rails\
**Created:** [June 11, 2007, 2:11pm UTC](https://www.ruby-forum.com/t/scaffold-based-cms/106513 "2007-06-11T14:11:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prtscr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@prtscr](https://www.ruby-forum.com/u/prtscr)\
**Post date:** [June 11, 2007, 2:11pm UTC](https://www.ruby-forum.com/t/scaffold-based-cms/106513/1 "2007-06-11T14:11:52Z")

</div>

I’m building a very simple site for an architect. The main features  
are a listing of projects and a link list of partners.

The way I build it is with one controller for the frontend and one for  
the backend. So far it’s been working very fine for the frontend.

Now I thought I would use scaffold to generate some files to work from  
for the backend.

There is no problem writing like this:

class AdminController \< ApplicationController

scaffold :project

end

But if I do something like this it won’t work:

class AdminController \< ApplicationController

def project  
scaffold :project  
end

def partner  
scaffold :partner  
end

end

Is there a way to solve this?

Can you write some syntax in the console to regerate the scaffold code  
nestled in a action?

Thanks in advance!
