Hi -- On Sat, 26 Sep 2009, Fernando Perez wrote:
> > Search engine don't index << so it's hard to find info about it. > > Let's say I have: > > order = order.create > item = Item.new > > Will order.items << item create a new entry for the item in DB or not? > I'm having issues. Yes, it will save the item (assuming Order has many Items, Item belongs to Order). If it doesn't, something else is wrong (like the item not being valid). David -- David A. Black, Director Ruby Power and Light, LLC (http://www.rubypal.com) Ruby/Rails training, consulting, mentoring, code review Book: The Well-Grounded Rubyist (http://www.manning.com/black2) --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

