add require 'will_paginate/array' in controllers