search for: country_products

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

2006 May 16
0
Possible bug: ActiveRecord::Base::has_many fails for String arguments.
Hi I''ve noticed ActiveRecord::Base::has_many fails for String arguments. The following code works when all arguments to the ActiveRecord::Base::has_many calls are Symbols: class Country < ActiveRecord::Base has_many :country_products, :dependent => true has_many :products, :through => :country_products end ruby script/console >> Country.find_all.first.products [#<Product:0x313f4d8 @attributes={"name"=>"pencil", "id"=>"1"}>] But once we change some of them to St...