ruby on rails - How to customise ActiveAdmin TitleBar Breadcrumb? -
how customise titlebar in activeadmin show view? example, in attached screenshot, have breadcrumb admin / orders / order #11834 in show view. instead of want customise , display "admin / orders / order# 43872378123" or "admin / orders / transaction# mwlddtc3rw".
in app/admin/order.rb
show title: proc{ |order| order.transaction_number.present? ? "order# #{order.order_number} & transaction# #{order.transaction_number}" : "order number #{order.order_number}" } end in general,
show title: proc {|post| post.title} # ........ end reference - https://github.com/activeadmin/activeadmin/wiki/set-page-title
Comments
Post a Comment