Skip to content

Commit 1888c1d

Browse files
committed
fix: missing translation error
1 parent 2689a46 commit 1888c1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/controllers/comments_controller.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def create
3030
if turbo_frame_request?
3131
format.html
3232
else
33-
format.html { redirect_to @comment, notice: I18n.t("Comment was successfully created.") }
33+
format.html { redirect_to @comment, notice: I18n.t(:comment_was_successfully_created) }
3434
end
3535
format.json { render :show, status: :created, location: @comment }
3636
else
@@ -49,7 +49,7 @@ def create
4949
def update
5050
respond_to do |format|
5151
if @comment.update(comment_params)
52-
format.html { redirect_to @comment, notice: I18n.t("comment_was_successfully_updated") }
52+
format.html { redirect_to @comment, notice: I18n.t(:comment_was_successfully_updated) }
5353
format.json { render :show, status: :ok, location: @comment }
5454
else
5555
format.html { render :edit }
@@ -63,7 +63,7 @@ def update
6363
def destroy
6464
@comment.destroy!
6565
respond_to do |format|
66-
format.html { redirect_to comments_url, notice: I18n.t("comment_was_successfully_destroyed") }
66+
format.html { redirect_to comments_url, notice: I18n.t(:comment_was_successfully_destroyed) }
6767
format.json { head :no_content }
6868
end
6969
end

0 commit comments

Comments
 (0)