app/controllers/bus_diagrams_controller.rb
# render list for data maintenance by admin
render list for data maintenance by admin
render list for data maintenance by admin
def list
    @def_items = Def_Items
    @list_items = List_Items
    @menu_name = "スクールバス：ダイヤグラム表"
    @collection_options = {:collection_template => "list", :entity_template => "list_entity"}
    @collection = BusDiagram.find :all, 
                                  :page  => current_page,
                                  :scope => :self, 
                                  :assert_time => @bus_departure_time,
                                  :select => select_items(@def_items, @list_items + [:id, :run_id]),
                                  :order  => "diagram_type, holiday, station, hour"
  end
def list @def_items = Def_Items @list_items = List_Items @menu_name = "スクールバス：ダイヤグラム表" @collection_options = { :collection_template => "list" , :entity_template => "list_entity" } @collection = BusDiagram . find :all , :page => current_page , :scope => :self , :assert_time => @bus_departure_time , :select => select_items ( @def_items , @list_items + [ :id , :run_id ] ) , :order => "diagram_type, holiday, station, hour" end
render list for data maintenance by admin
render list for data maintenance by admin