Integrating post model with existing program infrastructure.

avoid using instance variable in partials