a = Album.new(:name => 'Al', :artist_attributes => {:name => 'Ar'})
a.save

If the save fails either the Artist or Album validations, we want
a.artist.name == 'Ar', so we can re-render the form and present the user's
input for correction. Right now a.artist returns nil.

Does this look right? http://gist.github.com/352595

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-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/sequel-talk?hl=en.

Reply via email to