@issue = Issue.all.paginate(page: params[:page], per_page:
5).order("issue_slip_no DESC")
..
How should I correct it?
I think you may have the wrong method in your controller. It appears as though the method you should call there is named page() not paginate(). Did you copy and paste this from your code? Here's the documentation -- you should call page(params[:page]).per_page(10) (separate chained method) not paginate and the methods as attributes. API documentation · mislav/will_paginate Wiki · GitHub
:inner_window and outer_window properties doesnot showing me any changes
5).order("issue_slip_no DESC")
..
How should I correct it?
I think you may have the wrong method in your controller. It appears as
though the method you should call there is named page() not paginate().
Did you copy and paste this from your code? Here's the documentation --
you should call page(params[:page]).per_page(10) (separate chained
method) not paginate and the methods as attributes.
API documentation · mislav/will_paginate Wiki · GitHub