File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/generators/rails/templates Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def create
3333
3434 respond_to do |format |
3535 if @<%= orm_instance . save %>
36- format.html { redirect_to @<%= singular_table_name %> , notice : <%= "' #{ human_name } was successfully created.'" %> }
36+ format.html { redirect_to @<%= singular_table_name %> , notice : <%= %(" #{ human_name } was successfully created.") %> }
3737 format.json { render :show, status: :created, location: <%= "@#{ singular_table_name } " %> }
3838 else
3939 format . html { render :new }
@@ -47,7 +47,7 @@ def create
4747 def update
4848 respond_to do |format |
4949 if @<%= orm_instance . update ( "#{ singular_table_name } _params" ) %>
50- format . html { redirect_to @<%= singular_table_name %>, notice : <%= "' #{ human_name } was successfully updated.'" %> }
50+ format . html { redirect_to @<%= singular_table_name %>, notice : <%= %(" #{ human_name } was successfully updated.") %> }
5151 format.json { render :show, status: :ok, location: <%= "@#{ singular_table_name } " %> }
5252 else
5353 format . html { render :edit }
@@ -61,7 +61,7 @@ def update
6161 def destroy
6262 @<%= orm_instance . destroy %>
6363 respond_to do |format|
64- format.html { redirect_to <%= index_helper %> _url , notice : <%= "' #{ human_name } was successfully destroyed.'" %> }
64+ format.html { redirect_to <%= index_helper %> _url , notice : <%= %(" #{ human_name } was successfully destroyed.") %> }
6565 format.json { head :no_content }
6666 end
6767 end
You can’t perform that action at this time.
0 commit comments