> Thanks! I will try that. Also, would it be possible to add validations
> in the model for each of the sets?

I don't think you can use rails' standard 'valtidates' methods, like
validates_presence_of, but you can add your own custom validate method
to your model:

def validate
  self.errors.add(:sets, 'are invalid') unless <your validation code
here>
end
--~--~---------~--~----~------------~-------~--~----~
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