What am I missing here? I am using the haml_scaffold generator and the pages work fine with will_paginate. When I start tinkering I end up with this \'total_pages\' error an
@locations = Location.paginate(:all, :conditions => 'city = springfield')
@locations must be an object
@locations
in your example @locations is an Array
Array
array cant have total_pages method