In my view, I do a

<%= render :partial => 'person', :collection =>
@household.people.sort_by(&:birthday) %>

household has a has_many relationship with person, and this works fine
until...

an errant user creates a new person and tries to save without filling
the fields(day, month, and year). After this the birthday field is
created and fails horribly. Is there any way to delete blank records
as part of the validation??


Thanks

Bob     <[email protected]>

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

Reply via email to