aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-05-17 20:23:38 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-05-17 20:23:38 +0000
commit4d2b2971583f86e2e2a2c7e9c917292bcdd87e6b (patch)
treeb4c8937c8cdb08cb80df5da4ff2fafa222124900
parent04823ff48fbde3ecf7849a1e1a3d3bcc4cc71aa8 (diff)
downloadrails-4d2b2971583f86e2e2a2c7e9c917292bcdd87e6b.tar.gz
rails-4d2b2971583f86e2e2a2c7e9c917292bcdd87e6b.tar.bz2
rails-4d2b2971583f86e2e2a2c7e9c917292bcdd87e6b.zip
A few more fixes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb b/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb
index 51b912a985..2a7df1663e 100644
--- a/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb
+++ b/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb
@@ -45,8 +45,8 @@ class <%= controller_class_name %>Controller < ApplicationController
respond_to do |format|
if @<%= file_name %>.save
flash[:notice] = '<%= class_name %> was successfully created.'
- format.html { redirect_to(@<%= file_name %>)
- format.xml { render :xml => @<%= file_name %>, :status => :created, :location => <%= file_name %>_url(@<%= file_name %>) }
+ format.html { redirect_to(@<%= file_name %>) }
+ format.xml { render :xml => @<%= file_name %>, :status => :created, :location => @<%= file_name %> }
else
format.html { render :action => "new" }
format.xml { render :xml => @<%= file_name %>.errors }