Topic: Recommendations for Multiple Models/Controller

I have multiple models, and want a "admin" interface to each (they are not related)

If I generate "scaffold model1 admin", the generate scaffold model2 admin, it over writes the previous scaffold (correct?)

What is the recommended way to do this?

Thanks!

Re: Recommendations for Multiple Models/Controller

You can place controllers into namespace modules like this:

scaffold foo 'admin/foo'
scaffold bar 'admin/bar'

This will group the two foo/bar controllers into an admin area. However, you may already have public foo/bar controllers that do some of the things the admin area will do. It is becoming more common to use the public controllers and restricting access to certain actions in that controller. This way you aren't duplicating logic between the two controllers.

Railscasts - Free Ruby on Rails Screencasts