I spent a while going through API docs but couldn't figure this out. Is there
a way to access a model's validation scheme from within the view?
I would like to do this so that I can programmatically generate form fields.
If this can be done then I will do things like:
- set maxlength of form fields to :maximum (from validates_length_of)
- put an asterisk (or whatever) beside any fields that have validations and
allow_nil is not true - to indicate that it is a required field
I realize that the user can submit the form and get all the feedback he needs
anyway but I just think it would be nice to help out the user a bit on the