Scaffold based CMS...

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


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

class AdminController < ApplicationController

def project scaffold :project end

def partner scaffold :partner 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!