Forum: Ruby on Rails Scaffold based CMS...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bc7935e860cc8d6a35be3170a0093b0e?d=identicon&s=25 prtscr (Guest)
on 2007-06-11 14: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

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