Suraj
Suraj

Reputation: 2553

changing navigation label name in rails admin

I am trying to change the navigation of the name in my rails admin dashboard.

This is what I have under my rails_admin.rb file

  config.model 'Product' do
  list do
    field :id
    field :design_code
    field :brand
    field :is_hidden
    field :filename
end

Where am I suppose to change the name of navigations labels?

Upvotes: 1

Views: 3708

Answers (1)

zwippie
zwippie

Reputation: 15515

Basic label configuration for rails admin:

config.model 'Product' do
  label 'Item' # Change the label of this model class
  field :id
  field :design_code
  field :brand do
    label 'Company' # Change the label of this field
  end
  field :is_hidden
  field :filename
end

See the rails_admin wiki for more info.

Upvotes: 6

Related Questions