Administrate: Resource Name

Created on 18 Apr 2017  路  5Comments  路  Source: thoughtbot/administrate

Is there a way to change the Resource Name without overriding the application helper?

So if we had a table named "users" and we wanted to label it "managers" for example.

Most helpful comment

You can try something like this for button labels:

en:
  helpers:
    submit:
      user:
        create: 'Create manager'
        update: 'Update manager'

All 5 comments

how about i18n?
You can specify model name in activerecord.models.
http://guides.rubyonrails.org/i18n.html#translations-for-active-record-models

I have confirmed this technique can work, however, it does not rename the button labels i.e. new user instead of new dude.

You can try something like this for button labels:

en:
  helpers:
    submit:
      user:
        create: 'Create manager'
        update: 'Update manager'

Thank you @jcieslar

@jcieslar thanks! It works!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kwerle picture kwerle  路  4Comments

rmarronnier picture rmarronnier  路  4Comments

brynmrk picture brynmrk  路  3Comments

conwayanderson picture conwayanderson  路  4Comments

Reedian picture Reedian  路  4Comments