File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments