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?