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

Version Path
spud_blog-0.9.9 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.9.8 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.9.7 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.9.5 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.9.4 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.9.3 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.9.2 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.9.1 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.9.0 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.8.18 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.8.17 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.8.16 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.8.15 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.8.14 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.8.13 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.8.12 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.8.11 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.8.8 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.8.7 app/controllers/spud/admin/post_comments_controller.rb
spud_blog-0.8.6 app/controllers/spud/admin/post_comments_controller.rb