Ember temp commit

This commit is contained in:
2013-09-24 08:47:30 +02:00
parent ebbb5dedfc
commit 5650ada04c
71 changed files with 595 additions and 66 deletions
@@ -19,9 +19,10 @@ module Suppliers
# GET /sections/1.json
def show
@section = Section.find_by_supplier_id_and_id!(current_supplier.id, params[:id])
@tables = @section.tables_with_active_list_id
respond_to do |format|
format.html # show.html.erb
format.html { render action: 'tables_view' }# show.html.erb
format.json { render json: @section }
end
end
@@ -103,7 +104,7 @@ module Suppliers
# GET /sections/1/tables_view.json
def tables_view
@section = Section.find_by_supplier_id_and_id!(current_supplier.id, params[:id])
@tables = Table.enrich_active_list_id(@section.tables)
@tables = @section.tables_with_active_list_id
respond_to do |format|
format.html # show.html.erb