Search code examples
ruby-on-railsrubyscaffolding

Rails: scaffold. Create admin controller for model


I want to create admin interface for existing model User.

What is the simplest way?
I think, it's scaffolding.

Scaffolding in rails is generated by script(rails generate scaffold), and there is no options to do it dynamically (like in django), correct?

So how can I create scaffolding controller AdminUsers for model User? Create AdminUsers scaffolding and replace AdminUser model by User?

What should I do if model will be changed by migrations? Manually update scaffolding controller and views, right? Is there any automation?


Solution

  • enter image description here

    ActiveAdmin is a neat user interface for your Rails application. It gives you a fully customizable user interface to your models.

    Site: http://activeadmin.info/

    Demo: http://demo.activeadmin.info/admin

    Railscasts Episode: http://railscasts.com/episodes/284-active-admin