Fixed bug in commenting orders.

This commit is contained in:
Benjamin Meichsner 2009-02-12 14:30:25 +01:00
parent 86b2b28dc9
commit 8cb8701c60
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ class StockitController < ApplicationController
def new
@supplier = Supplier.find(params[:supplier_id])
@stock_article = @supplier.stock_articles.build(:tax => 7.0)
rescue
flash[:error] = "Es wurde kein gültiger Lieferant ausgewählt."
redirect_to stock_articles_path
end
def create