upgrade gems
review again with Rails 4 setting
review the generate template for will_paginate in rails 4