Skip to content
bcardarella edited this page Apr 7, 2012 · 12 revisions

Installation

In your Gemfile just add the gem:

gem 'client_side_validations', '~> 3.0.0'

After the gem is installed you'll want to run the generator

> rails generate client_side_validations:install

Two files will be added to your app:

  • config/initializers/client_side_validations.rb
  • public/javascripts/rails.validations.js

Any time you update the Client Side Validations gem it is recommended that the install generator be run. rails.validations.js is a file that will probably see a lot of change.

Clone this wiki locally