Skip to content

Association display changed after migrating to rails_admin 3.0 #3521

@bricedurand

Description

@bricedurand

Hello,

I've migrated my application from rails_admin 2.2 to 3.0 and it is usable, however some views have changed without changing the model code.

I have a Student model which belongs to a School :

class Student < User
    belongs_to :school, optional: true

    rails_admin do
      list do
        field :school
      end

      edit do
        field :school
     end
  end
end

Here are the changes :
List view
In my 2.2 list view, the school was displayed as a link, which was a nice way to navigate in the admin.
2022-05-23 link to school in user list view rails_admin 2
Now in 3.0 list view, I lost the link :
2022-05-23 link to school in user list view rails_admin 3

Show view
In 2.2 show view, I also had a link
2022-05-23 link to school in user show view rails_admin 2

And now in 3.0 show view it is just the ID :
2022-05-23 link to school in user show view rails_admin 3

Edit view
In 2.2 edit view, there was a select box to change the school, plus a button to modify the school or add a new one.
2022-05-23 link to school in user edit view rails_admin 2

In 3.0 edit view there is only an input with the name of the school
2022-05-23 link to school in user edit view rails_admin 3

Is it possible to get the old display back? I haven't found anything regarding field configuration that would give me the old behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions