diff options
author | Pavel Pravosud <pavel@pravosud.com> | 2013-01-11 10:26:39 +0700 |
---|---|---|
committer | Pavel Pravosud <pavel@pravosud.com> | 2013-01-11 10:26:39 +0700 |
commit | cca17296de14048b2a2a67576224b8cc29395ede (patch) | |
tree | 66b8993a813031f776e0f9ea4c12274478016f08 /railties/lib/rails | |
parent | d643cbe7f8b85db222feed4be14821cfe338cc6c (diff) | |
download | rails-cca17296de14048b2a2a67576224b8cc29395ede.tar.gz rails-cca17296de14048b2a2a67576224b8cc29395ede.tar.bz2 rails-cca17296de14048b2a2a67576224b8cc29395ede.zip |
More consistent quotes in scaffold generator
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb b/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb index 6f7eb07229..e813437d75 100644 --- a/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +++ b/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb @@ -31,7 +31,7 @@ class <%= controller_class_name %>Controller < ApplicationController if @<%= orm_instance.save %> redirect_to @<%= singular_table_name %>, notice: <%= "'#{human_name} was successfully created.'" %> else - render action: "new" + render action: 'new' end end @@ -40,7 +40,7 @@ class <%= controller_class_name %>Controller < ApplicationController if @<%= orm_instance.update("#{singular_table_name}_params") %> redirect_to @<%= singular_table_name %>, notice: <%= "'#{human_name} was successfully updated.'" %> else - render action: "edit" + render action: 'edit' end end |