Answer the question
In order to leave comments, you need to log in
Rails pagination. How to access the original selection?
We have:
records = Record.search(params[:search]).page(params[:page]).per(20)
Record.search(params[:search])
after a paginated selection? records_before_paginate = Record.search(params[:search])
records = records_before_paginate.page(params[:page]).per(20)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question