Skip to content

Commit

Permalink
fix: missing translation error
Browse files Browse the repository at this point in the history
  • Loading branch information
rameziophobia committed Aug 26, 2024
1 parent d8b1e93 commit a217ffa
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit a217ffa

Please sign in to comment.