Added post for ajax pagination in rails