Displaying 1 result from an estimated 1 matches for "trottolina".
2011 Jan 16
4
persistence by reachability
Hello guys, I have these models
class Farmer < ActiveRecord::Base
has_many :cows
end
class Cow < ActiveRecord::Base
set_table_name :cows
belongs_to :farmer
end
...
graph = Farmer.find(x) # Retrieves four cows of x
graph.cows[1].name = "Trottolina"
graph.save
while adding a new cow to collection works perfectly fine, ActiveRecord
doesn''t update for reachability the associated record why?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on R...