GitHub User: rvsingh
If you need to add nested-forms dynamically. You can have a look at
Can someone help me here. I am new with rails and trying to dynamically add fixed number of pre-populated nested forms using cocoon. Please be kind enough to read more details here.
Thanks a lot!!
Make this change in routes. And it works.
resources :styles do
match 'search' => 'styles#index', :via => [:get, :post], :as => :search
I am trying to use will_paginate with ransack.
@search = Style.search(params[:q])
@styles = @search.result(:distinct => true).paginate(:page => params[:page], :per_page => 5)
<%= will_paginate @styles %>
Rest of the code is same as in this tutorial. But pagination links are not working. Really stuck with it. Please help.