search for: find_manufacturer

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

2009 Oct 26
1
model.find(:id) and model.find(:all) giving different result
I have the following code that works very well @manufacturer = Manufacturer.find_manufacturer(params[:id]) which produces the following SQL: SELECT * FROM `manufacturers` WHERE (`manufacturers`.`id` = 4) #Here params[:id] =4 ON my view I can access the fields using @manufacturer.field_name However when I do the following @manufacturer = Manufacturer.find(:all, :conditions => {:id...