Sha256: 377d9a437a008555b022c721dfdf8242259872d30923c0c06ce34dfc91c9ef51
Contents?: true
Size: 600 Bytes
Versions: 41
Compression:
Stored size: 600 Bytes
Contents
class Spud::Admin::PostCommentsController < Spud::Admin::ApplicationController respond_to :html, :xml, :json before_filter :find_comment, :only => [:show, :edit, :update, :destroy] def index if params[:post_id] @post_comments = SpudPost.find(params[:post_id]).comments else @post_comments = SpudPost.all end respond_with @post_comments end def show respond_with @post_comment end def edit respond_with @post_comment end def update end def create end def destroy end private def find_comment @post_comment = SpudPostComment.find(params[:id]) end end
Version data entries
41 entries across 41 versions & 1 rubygems