simple_form icon indicating copy to clipboard operation
simple_form copied to clipboard

Validation reflection

Open activestylus opened this issue 16 years ago • 4 comments

Would be great to have simple_form use the model validations to determine whether a field is required. Right now formtastic does this in tandem with validation reflection plugin, but it may be a better idea to reflect on ActiveModel's validations in Rails 3.

PS - obviously this is a feature request - is this a good place to post them?

activestylus avatar Feb 21 '10 22:02 activestylus

Yep. validation reflections were just added to Rails 3 edge. This would be a nice addition to the plugin.

aaronchi avatar Feb 21 '10 22:02 aaronchi

Yes. This is a good place to put feature requests! :) I would love this feature too, anyone in mood to try it out in a fork and send me a pull request later?

josevalim avatar Feb 22 '10 06:02 josevalim

mmmm, I was implementing this, but I get failures in master tests!

Papipo avatar May 11 '10 22:05 Papipo

I just implemented this and sent a pull request.

@Papipo I didn't realize you were already doing this. :(

gcirne avatar May 14 '10 22:05 gcirne