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
First include the jquery validation file in your layout. Then in rails form add class to validation required fields as <%= f.text_field :firstname, :class => "required" %>. Then write a method with form_id to trigger the validation. That is you have to give like
$(document).ready(function () {
$("your_form_id").validate();
});