search for: bakery_output

Displaying 1 result from an estimated 1 matches for "bakery_output".

2007 Nov 19
2
Help with controller and view
...uot;salebatchcode LIKE ?", "%#{params[:BakeryOutput] [:salebatchcode]}%"], :include => [:recipe, :customer]) end respond_to do |format| format.html # index.rhtml format.xml { render :xml => @traceabilities.to_xml } end end def show @bakery_output = BakeryOutput.find(params[:id], :include => [:recipe]) @recipe = @bakery_output.recipe @ingredients=@recipe.ingredients.find(:all) respond_to do |format| format.html # show.rhtml format.xml { render :xml => @traceability.to_xml } end end end Views The Index...