I have model called Part which is using ActiveAdmin, CRUD operation works fine but the breadcrumb is not generating properly. Here is what I am getting in the breadcrumb on the EDIT page
Admin / Parts / #<Part:0xcd74ef0> /
I am using "activeadmin", "0.5.0"
In Active Admin for Custom breadcrumb
Try to define display_name in your Part model.
class Part < ActiveRecord::Base
// Some Code
def display_name
"#{ id } #{ name }"
end
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