0
我有一個活動的管理面板,其中涉及其他模型,包括自定義的一個。我想在重定向到新的管理頁面時保留頂部的導航欄。Active Admin:使用新的自定義頁面保留頂層菜單導航欄
交易管理模式: 「我的自定義管理頁面」
ActiveAdmin.register_page "Transactions" do
# content do
# para "Hello World"
# render partial: 'transactions'
# # render :template => "transactions"
# end
controller do
def index
@reservations = Reservation.where("transaction_id = transaction_id", true)
# @reservations = Reservation.all
end
private
def find_reser
@reservation = Reservation.find(params[:id])
end
end
end
所有的一切我想要保持最高的導航欄!我確定我在我的交易管理模式中添加了一些東西。這是我的自定義模型。
謝謝你,但我是已經有這樣的代碼。不幸的是,導航欄適用於除自定義視圖之外的所有內容:/ –