Added id fields to post and added will_paginate gem