Forum: Ruby on Rails One controller, multiple scaffolds?

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.
94cc3e46cfc5bc361e409e2e884ecfa4?d=identicon&s=25 Drew Olson (dfg59)
on 2007-01-15 17:18
I'm currently working on a Rails project and I want to have a very
simple administrative back end. All I need to do is create a scaffold
for several database tables. For example, I want the user to be able to
add/edit/delete both Events and Announcements. Is there a way to do this
from a single controller or can I only have one scaffold per controller?

Speaking of which, this brings up a larger issue I've been thinking
about. When is it appropriate to create a new controller? As of right
now, I'm thinking my application will only have two: one for the front
facing content and one for the administrative back end.

Any help is much appreciated,
This topic is locked and can not be replied to.