I am using “will_paginate” for pagination. For that I have written
@book_photos=@selected_photos.paginate :per_page => 3, :page =>
It is working fine.
I have problem with this that every time it is retrieving all records
satisfying the where condition.
I don’t want like that. It should fetch only three records from the
How should I do that?
Any help will be appreciated.