How to use jquery validation plugin for the rails form given below.
I want complete steps about how to make the it for different fields
You can use the jquery validation rails gem based on jquery validation plugin. To use it
gem 'jquery-validation-rails'
On your app/assets/javascripts/application.js
add the following lines
//= require jquery.validate.additional-methods
//= require jquery.validate
$(document).ready
use $(document).on "turbolinks:load"
as described in turbolinks readme