> > Is there a way to make it update the record if the object already > > exists in the db, and otherwise create it? > > If that's what you want then you should attempt to load the > appropriate object first, create a new one if you can't find one and > then save (see also the dynamic finders > -http://api.rubyonrails.org/classes/ActiveRecord/Base.html > )
Difficult, since the association seems to be saved automatically. I guess I have to switch that off somehow, then. No other way available? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

