2013-09-26 56 views

回答

1

我寫了下面:

ActiveAdmin::Views::Pages::Base.class_eval do 
     # Renders the sidebar 
     def build_sidebar 
      a = [] 
      sidebar_sections_for_action.collect do |section| 
      a = [a, section].flatten.compact 
      end 
      div id: "sidebar" do 
      a.reverse.each do |section| 
       sidebar_section(section) 
      end 
      end 
     end 
end 

保存在上面的應用程序/管理/ active_admin_extensions.rb, 好運。