i am trying to submit a hidden form that contain the per_page and current_page details as a param values for paginating the search results , but the same view page contain the search form also . but while submitting the hidden form by using .submit() method in AJAX for paginating the search results i am getting conflicts between these 2 forms . could any one please tell what we need to care about while using 2 forms in one view page in Rails .
Share
No you can have n number of forms, but they should not be nested.
your html should be liek foloowing
and to submit
form_1using jquery use.submitmethod of jquery as following