Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Backbone plugin for ClientSideValidations
JavaScript CoffeeScript Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
coffeescript
gemfiles
lib
test
vendor/assets/javascripts
.gitignore
.travis.yml
Gemfile
README.md
Rakefile
client_side_validations-simple_form.gemspec

README.md

STOP

This repo is very much under active development and should not be used yet!

ClientSideValidations-Backbone

Build Status

Backbone plugin for ClientSideValidations

Installation

In your Gemfile add the following:

gem 'client_side_validations'
gem 'client_side_validations-backbone'

Order matters here. ClientSideValidations need to be required before ClientSideValidations-Backbone.

Follow the remaining installation instructions for ClientSideValidations

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

//= require rails.validations.backbone

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

TODO

Authors

Brian Cardarella

Versioning

This gem follows Semantic Versioning

Major and minor version numbers will follow Backbone's major and minor version numbers. For example, client_side_validations-backbone-0.5.0 will be compatible with ~> Backbone 0.5.0

Want to help?

Stable branches are created based upon each minor version. Please make pull requests to specific branches rather than master.

Please make sure you include tests!

Unles Rails drops support for Ruby 1.8.7 we will continue to use the hash-rocket syntax. Please respect this.

Don't use tabs to indent, two spaces are the standard.

Legal

DockYard, LLC © 2012

@dockyard

Licensed under the MIT license

Something went wrong with that request. Please try again.