search for: show_manufacturer_details

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

2009 Oct 26
1
model.find(:id) and model.find(:all) giving different result
...the following @manufacturer = Manufacturer.find(:all, :conditions => {:id => params[:id]}) Which produces the same SQL as above: SELECT * FROM `manufacturers` WHERE (`manufacturers`.`id` = 4) #Here params[:id] =4 I get the following error on my view: NoMethodError in Public_manufacturers#show_manufacturer_details Showing app/views/public_manufacturers/show_manufacturer_details.html.erb where line #4 raised: undefined method `logo'' for #<Array:0x26e4838> Why is this happening and how can I solve it? Thank you in advance. -- Posted via http://www.ruby-forum.com/.