Question

I am using the sferik/railsadmin gem in my rails application. Is it possible to configure its views? If yes , how to generate its views and configure them ?

Était-ce utile?

La solution

You can just override a view by creating your own at the same path. There is also a rake task to help you - rake rails_admin:copy_views

Think carefully though, you would have to update your modified views everytime rails_admin changed it's internals about a lot.

Autres conseils

RailsAdmin also allows you to configure the views and navigation without actually copying over all the views. This way is nice since it still allows all the dynamic magic to happen while providing some control over what models are shown, fields are shown, order of fields, navigation, etc. The wiki explains how to configure in detail. and here for navigation

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top