Use canonical page_number instead of params[:page].
page_number is guaranteed correct.
Sanitize params[:page] first time page_number first called.
Add post id to post/show, page number to post/index (title and canonical).