Hello everybody,
Quick question. Let''s say I have two models: Trouble_Ticket and
Issues. Trouble_Ticket has_many Issues and Issue belongs_to
Trouble_Ticket -- a classic has_many.
When I do Trouble_Ticket << Issue, Issue is automatically inserted
into the db. But if I do this:
x = Trouble_Ticket.find :first
x.issues {|issue| issue.status_id = 2 }
... and then
x.save
... the issues are not automatically updated. Why?
I couldn''t find an answer to this anywhere.
Thanks for any clues.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---