end of day commit

This commit is contained in:
2013-01-10 01:00:59 +01:00
parent b85bbf1aee
commit 87046c872c
23 changed files with 642 additions and 28 deletions
@@ -14,7 +14,7 @@ module Suppliers
# GET /tables/1
# GET /tables/1.json
def show
@table = Table.find(params[:id])
@table= Table.find_by_supplier_id_and_id!(current_supplier.id, params[:id])
respond_to do |format|
format.html # show.html.erb
@@ -59,7 +59,7 @@ module Suppliers
# PUT /tables/1
# PUT /tables/1.json
def update
@table = Table.find(params[:id])
@table= Table.find_by_supplier_id_and_id!(current_supplier.id, params[:id])
respond_to do |format|
if @table.update_attributes(params[:table])
@@ -77,7 +77,7 @@ module Suppliers
# DELETE /tables/1
# DELETE /tables/1.json
def destroy
@table = Table.find(params[:id])
@table= Table.find_by_supplier_id_and_id!(current_supplier.id, params[:id])
@table.destroy
respond_to do |format|