Removes unnecessary instance vars.
Merge pull request #2003 from velesin/posts_controller_instance_vars_fix

Removes unnecessary instance vars.