Not logged in (Log in or Sign up)

unwwwritten

2 posts

has_many problems with validations

Today's gotcha has to do with using has_many and validations within the child model. In my use-case I need to create a parent record with on …

One or the other (but not both)

I ran into a validation today that rails didn't handle for me... or if it does, I didn't see how... I wanted a model to contain field values …