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 ?

Was it helpful?

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top