Rails Administrate - How to Customize Navigation Link Text

109 Views Asked by At

In administrate if I have a model called parentequipmenttype how to I customize the Navigation link to display as "Parent Equipment Type" instead of listing as parentequipmenttype?

1

There are 1 best solutions below

0
Remy Wang On

You will need to customize app/dashboards/parentequipmenttype_dashboard.rb file.

require "administrate/custom_dashboard"

class ParentequipmenttypeDashboard < Administrate::CustomDashboard
  resource "Parent Equipment Type"
end