Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/controllers/comments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def create
if turbo_frame_request?
format.html
else
format.html { redirect_to @comment, notice: I18n.t("Comment was successfully created.") }
format.html { redirect_to @comment, notice: I18n.t(:comment_was_successfully_created) }
end
format.json { render :show, status: :created, location: @comment }
else
Expand All @@ -49,7 +49,7 @@ def create
def update
respond_to do |format|
if @comment.update(comment_params)
format.html { redirect_to @comment, notice: I18n.t("comment_was_successfully_updated") }
format.html { redirect_to @comment, notice: I18n.t(:comment_was_successfully_updated) }
format.json { render :show, status: :ok, location: @comment }
else
format.html { render :edit }
Expand All @@ -63,7 +63,7 @@ def update
def destroy
@comment.destroy!
respond_to do |format|
format.html { redirect_to comments_url, notice: I18n.t("comment_was_successfully_destroyed") }
format.html { redirect_to comments_url, notice: I18n.t(:comment_was_successfully_destroyed) }
format.json { head :no_content }
end
end
Expand Down