Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Turbolinks Plugin for ClientSideValidations
branch: master

Merge branch 'rails4'

* rails4:
  Add coveralls
  Move byebug and debugger to gemspec Improve readme Fix repository urls Regenerate javascript Remove rails development dependency
  added ruby 2.2 to travis config
  changed client side validations version
  tested against rails 4.2.0
  Tested against rails 4.2.0.rc2
  fixed whitespace
  uniformed test helper with client_side_validations-simple_form
  tested against rails 4.2.0.rc1 freezes version number removed whitespace at the end of file
  relaxed turbolinks dependency
  relaxed dependencies on gems with version >= 1 added license
  Updated ruby version in travis Tested against Rails 4.2.0.beta4 Updated contributing guidelines Updated readme
  updated version
  Ruby 1.9 hash syntax Added appraisal Fixed tests Improved .gitignore
latest commit 9121ce3e72
Geremia Taglialatela tagliala authored

README.md

ClientSideValidations-Turbolinks

Gem Version Build Status Dependency Status Code Climate Coverage Status

Turbolinks plugin for ClientSideValidations

Installation

In your Gemfile add the following:

gem 'turbolinks'
gem 'client_side_validations'
gem 'client_side_validations-turbolinks'

Order matters here. Turbolinks and ClientSideValidations need to be required before ClientSideValidations-Turbolinks.

Follow the remaining installation instructions for ClientSideValidations

Add the following line to app/assets/javascripts/application.js

//= require rails.validations.turbolinks

Again, order matters. You should add this line after the require for rails.validations as described in the ClientSideValidations installation instructions.

If the asset pipeline is disabled the asset file will be copied into public/javascripts when the ClientSideValidations install generator is run.

At any time you can copy the asset file into your project by running:

rails g client_side_validations:copy_assets

If the asset pipeline is disabled the asset file will be copied into public/javascripts. Otherwise the asset file will be copied into app/assets/javascripts (or whatever asset directory you have defined)

Usage

As long as you are using Turbolinks properly this should "just work". Any new forms that are candiadates for ClientSideValidations will be applied on every page:change event.

Authors

Brian Cardarella

Geremia Taglialatela

We are very thankful for the many contributors

Versioning

This gem follows Semantic Versioning

Major and minor version numbers will follow Turbolinks's major and minor version numbers. For example, client_side_validations-turbolinks-2.5.0 will be compatible up to ~> turbolinks-2.5.0

Want to help?

Please do! We are always looking to improve this gem. Please see our Contribution Guidelines on how to properly submit issues and pull requests.

Legal

DockYard, LLC © 2012-2015

@dockyard

Licensed under the MIT license

Something went wrong with that request. Please try again.