search for: bakeryoutput

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

2007 Nov 19
2
Help with controller and view
...ase has_many :ingredient_recipes has_many :recipes, :through => :ingredient_recipes has_many :suppliers end class Supplier < ActiveRecord::Base belongs_to:ingredient end The controller class TraceabilitiesController < ApplicationController def index if (params[:BakeryOutput].nil? ) @traceabilities = BakeryOutput.find(:all,:include => [:recipe, :customer]) else @traceabilities = BakeryOutput.find(:all, :conditions => ["salebatchcode LIKE ?", "%#{params[:BakeryOutput] [:salebatchcode]}%"], :include => [:recipe, :custom...