how to rename button new text in index active admin rails? example, i have button with value "New Book", how to change the text in button to "New Book Adventure"
i have code like this :
action_item :only => :index do
config.clear_action_items!
link_to "New Book Adventure" , "/admin/books/new"
end
but i get duplicate button in index page active admin?
You just need to get the config.clear_action_items!
line out of your action_item
block
Just like this:
config.clear_action_items!
action_item only: :index do
link_to 'New Book Adventure', '/admin/books/new'
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With