Class: Spud::Admin::PostCommentsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Spud::Admin::PostCommentsController
- Defined in:
- app/controllers/spud/admin/post_comments_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
27 28 29 |
# File 'app/controllers/spud/admin/post_comments_controller.rb', line 27 def create end |
#destroy ⇒ Object
31 32 33 |
# File 'app/controllers/spud/admin/post_comments_controller.rb', line 31 def destroy end |
#edit ⇒ Object
19 20 21 |
# File 'app/controllers/spud/admin/post_comments_controller.rb', line 19 def edit respond_with @post_comment end |
#index ⇒ Object
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 |
#show ⇒ Object
15 16 17 |
# File 'app/controllers/spud/admin/post_comments_controller.rb', line 15 def show respond_with @post_comment end |
#update ⇒ Object
23 24 25 |
# File 'app/controllers/spud/admin/post_comments_controller.rb', line 23 def update end |