In ActiveAdmin to set their field for bread crumbs?

There is a table with a title field and a field number.
The title field is not always filled, and the number opposite - always.

By default, ActiveAdmin title picks up from the table, and this leads to the fact that in the breadcrumbs remains a null reference, which cannot be pressed.

If you put the title field value as NULL, the null reference is solved - in its place there is the ID, but still not the same.

In General, as forcibly to specify in ActiveAdmin value for bread crumbs?
July 9th 19 at 10:10
1 answer
July 9th 19 at 10:12
The easiest way is to define in the model the method display_name:
def display_name
 title.presence || number

Find more questions by tags Ruby on Rails