Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3e1f722

Browse files
fix: missing translation error (#598)
1 parent b751afe commit 3e1f722

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎app/controllers/comments_controller.rb‎

Lines changed: 3 additions & 3 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /