small medium large xlarge

25 Aug 2008, 19:40
Peter Sandager Jeppesen (1 post)

I have a question about combining the multiple models of recipe 13 with the validation in recipe 15.

In recipe 13, I could have a number of fields in my HTML like this one:

If I want validation on these fields, how would that work? The example in recipe 15 requires that the field has a unique id, which the above field does not have.

Is there a standard way of implementing this?

Screen shot 2016-02-29 at 16.55.11_pragsmall
14 Dec 2009, 18:59
Bob (6 posts)

object_id is present of any Ruby objent, not only ActiveRecord object

You must be logged in to comment