mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-04 15:14:09 -04:00
Fixed location to redirect to afver comment add/update
This commit is contained in:
@@ -31,12 +31,12 @@ class CommentsController < ApplicationController
|
||||
@comment = Comment.new(comment_params)
|
||||
@comment.author = current_member
|
||||
@comment.save
|
||||
respond_with(@comment.post)
|
||||
respond_with @comment, location: @comment.post
|
||||
end
|
||||
|
||||
def update
|
||||
@comment.update(body: comment_params['body'])
|
||||
respond_with(@comment.post)
|
||||
respond_with @comment, location: @comment.post
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
||||
Reference in New Issue
Block a user