Displaying 1 result from an estimated 1 matches for "productno".
Did you mean:
productn
2005 Nov 30
8
nested attributes with update_attributes()
...ongs_to :productPrice
end
class ProductPrice < ActiveRecord::Base
has_one :product,
:dependent => true
validates_presence_of :costprice, :listprice
end
my parameters look something like this:
params = {
:product => {
:productno => "something",
:description => "something else",
:productPrice => {
:costprice => 30.34,
:listprice => 4.45
}
}
}
I get the error when I run product.updat...