I
I
Ilya Lazarev2014-06-25 22:30:13
Ruby on Rails
Ilya Lazarev, 2014-06-25 22:30:13

How to generate an admin panel using scaffold in Ruby on rails?

available:
Rails 4
Ruby 2
On the Internet I saw that you can generate an admin panel through scaffold. Please tell me how and why to generate it through scaffold?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Matveev, 2014-06-27
@CrusaderGo

There is experience with ActiveAdmin - during installation, it "generates" the admin framework + can generate admin panels for existing models.

rails g active_admin:install
... (миграции и бандл)
rails generate active_admin:resource MyModel

Further customization is quite simple (see the documentation on github , because it is godlessly outdated on the project website).

V
Viktor Vsk, 2014-06-25
@viktorvsk

There is, for example:
activeadmin.info
rails-admin-tb.herokuapp.com
It's not entirely clear what you mean by scaffold. It's just a collection of files that can be "copied" into the current project. Default - not so much. The rest by means of gems or their own

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question