Skip to content

Commit ef85b03

Browse files
author
David Heinemeier Hansson
committed
Use double quotes everywhere
1 parent f73e1be commit ef85b03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/generators/rails/templates/controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)