a guest Aug 10th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- How can pagination be done in ruby on rails 3.1?
- gem 'kaminari'
- @users = User.order(:name).page params[:page]
- <%= paginate @users %>
RAW Paste Data