Rails: ValidationReflection and Formtastic not working together

Posted by user336777 on Stack Overflow See other posts from Stack Overflow or by user336777
Published on 2010-06-06T20:47:14Z Indexed on 2010/06/06 20:52 UTC
Read the original article Hit count: 400

I installed validation_reflection as a gem and out of the box it picked up on my validates_presence_of validations. But it is not picking up on any of the other default rails validations such as validates_format_of.

I know from the documentation that i am supposed to add something like: config.reflected_validations << :validates_format_of

to my config/plugins/validation_reflection.rb file (which didn't exist initially). I did this but nothing changed (i restarted the web server in between). I am not sure if it just isn't picking up on my file and loading validation_reflection.rb or if i have done something wrong.

Anyone have any insights?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about validation