Activeadmin: change text of action buttons?

Created on 25 Jan 2012  路  2Comments  路  Source: activeadmin/activeadmin

Is there a way to change the text of the action buttons? For instance I want the New User button to say New Writer instead. I don't want to use the :as when I'm registering the block either.

Most helpful comment

buttons use formtastic I18n
en:
formtastic:
:yes: 'Yes'
:no: 'No'
:create: 'Create %{model}'
:update: 'Update %{model}'
:submit: 'Submit %{model}'
:cancel: 'Cancel %{model}'
:reset: 'Reset %{model}'
:required: 'required'

To change your model display name you have to use
en:
activerecord:
models:
user:
one: "Writer"
other: "Writers"

If you want to use it only in some forms.. then i dont know how to do it , but those informations should help you a little bit ;]

All 2 comments

buttons use formtastic I18n
en:
formtastic:
:yes: 'Yes'
:no: 'No'
:create: 'Create %{model}'
:update: 'Update %{model}'
:submit: 'Submit %{model}'
:cancel: 'Cancel %{model}'
:reset: 'Reset %{model}'
:required: 'required'

To change your model display name you have to use
en:
activerecord:
models:
user:
one: "Writer"
other: "Writers"

If you want to use it only in some forms.. then i dont know how to do it , but those informations should help you a little bit ;]

Thank you for the explanation, @pcreux !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gauthamns picture gauthamns  路  34Comments

stungeye picture stungeye  路  35Comments

seanlinsley picture seanlinsley  路  46Comments

tobyhede picture tobyhede  路  31Comments

chollier picture chollier  路  35Comments