View the Project on GitHub codn/adminpanel
In order to use friendly_id, you need:
slug
(string) field to the database.include Adminpanel::Friendly
to your model.If you need the slug to be generated with something different than name you may override
slug_candidates
instance method.
For deeper customization of the slug you may also add it to the form_fields hash
.
To call a friendly model: Adminpanel::Model.friendly.find(params[:id])