Rails will_paginate gem with angular.js to do pagination
问题 Context: I have a Rails backend serving as an API to an Angular.JS front-end application. Task: I want to retrieve all of the records of different species of "dinosaurs" from the Rails backend. Since there are over 500 records, I want to only get 30 species at a time. My current approach: I am using the will_paginate gem in my Rails index controller action for the dinosaurs_controller. I have it running like this. def index @dinosaurs = Dinosaur.paginate(:page => params[:page], :per_page =>