When I put the following in my gemfile:
gem 'simple_form'
gem 'client_side_validations'#, github: 'DavyJonesLocker/client_side_validations'
gem 'client_side_validations-simple_form'#, github: 'DavyJonesLocker/client_side_validations-simple_form'
It results in this:
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (= 5.0.0)
client_side_validations-simple_form was resolved to 3.2.0, which depends on
client_side_validations (~> 4.2.0) was resolved to 4.2.0, which depends on
rails (< 4.3.0, >= 4.0.0)
Any ideas on getting these gems to work?
You can use client_side_validations with Rails 5 by specifying the branch like this:
gem 'client_side_validations',
github: 'DavyJonesLocker/client_side_validations',
branch: 'rails5'
And if using Simple Form:
gem 'client_side_validations-simple_form',
github: 'DavyJonesLocker/client_side_validations-simple_form',
branch: 'rails5'