class CommentsController < ApplicationController helper :profile, :avatar include ProfileHelper before_filter :protect, :load_post private def load_post @post = Post.find(params[:post_id]) end end