Forum: Ruby on Rails Scaffold based CMS...

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
prtscr (Guest)
on 2007-06-11 16:11
(Received via mailing list)
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

def partner
scaffold :partner


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!
This topic is locked and can not be replied to.