Ruby on Rails Thursday, September 30, 2010

I would go with having a boolean field for artist and then conditional validarions, that is , if the field is true then have validations for artist apply along with the display of those extra field in the view, if the user stops been an artist, then it would stop validating and presenting those field, in fact would add a validation that would forbid those fields from changing while the artist value is false.

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment