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".

enter image description here

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

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -