On Apr 1, 5:55 pm, John Firebaugh <[email protected]> wrote:
> 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

That looks correct.  Thanks.  I think this is important enough to make
3.10.0.  Can you apply it to your repository?  I'll try to pull it
tomorrow morning so I can test before releasing 3.10.0.

Jeremy

-- 
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