Paginate method not defined

Adding the pagination feature to the sample app I ran into a small
issue not noted in the book. After adding the will_paginate gem, and
changing the index action to use User.paginate(:page => params[:page])
instead of User.all, I was getting the error paginate method not
found. Restarting the server solved this.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs