RailsCasts Pro episodes are now free!

Learn more or hide this

Jeremy Richardson's Profile

GitHub User: jeremyrichardson88

Comments by Jeremy Richardson

Avatar

does it work if you try and submit the form with blank fields?

Avatar

well i didn't initially see to add this //= require rails.validations in the application.js but i did and that didn't fix it either

Avatar

I ran this:

$ rails g client_side_validations:install

and got:
create config/initializers/client_side_validations.rb

however this file (create public/javascripts/rails.validations.js) didn't get created. is it because I'm in the new version of rails which has js in assets, and is this necessary for the inline validations, because mine aren't working. It works when I submit the form but not after I tab out of the text field. is there a way i can get this file to put in my assests.

thanks.