Class: Spud::Admin::PostCommentsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/spud/admin/post_comments_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



27
28
29
# File 'app/controllers/spud/admin/post_comments_controller.rb', line 27

def create

end

#destroyObject



31
32
33
# File 'app/controllers/spud/admin/post_comments_controller.rb', line 31

def destroy

end

#editObject



19
20
21
# File 'app/controllers/spud/admin/post_comments_controller.rb', line 19

def edit
	respond_with @post_comment
end

#indexObject



6
7
8
9
10
11
12
13
# File 'app/controllers/spud/admin/post_comments_controller.rb', line 6

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

#showObject



15
16
17
# File 'app/controllers/spud/admin/post_comments_controller.rb', line 15

def show
	respond_with @post_comment
end

#updateObject



23
24
25
# File 'app/controllers/spud/admin/post_comments_controller.rb', line 23

def update
	
end