File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def create
30
30
if turbo_frame_request?
31
31
format . html
32
32
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 ) }
34
34
end
35
35
format . json { render :show , status : :created , location : @comment }
36
36
else
@@ -49,7 +49,7 @@ def create
49
49
def update
50
50
respond_to do |format |
51
51
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) }
53
53
format . json { render :show , status : :ok , location : @comment }
54
54
else
55
55
format . html { render :edit }
@@ -63,7 +63,7 @@ def update
63
63
def destroy
64
64
@comment . destroy!
65
65
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) }
67
67
format . json { head :no_content }
68
68
end
69
69
end
You can’t perform that action at this time.
0 commit comments