S
S
Stergy2019-08-15 15:10:05
Ruby on Rails
Stergy, 2019-08-15 15:10:05

How to rename a field in ActiveAdmin?

When I try to rename a field in Active Admin
5d554b6d96077215908233.png
, I get a similar error, what should I do? Who can advise?
5d554b888656e761273184.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alekseiev, 2019-08-16
@Stergy

to rename the Dashboard on the Dashboard page, you need to pass the desired value to the content method in the admin/dashboard.rb file

ActiveAdmin.register_page "Dashboard" do
  menu priority: 1, label: proc{ I18n.t("active_admin.dashboard") } #здесь меняется название в верхнем меню

  content title: proc{ I18n.t("active_admin.dashboard") } do  #здесь меняется название в нужном Вам месте
    # тут контент
  end
end

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question