Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

A few more fixes

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 4d2b2971583f86e2e2a2c7e9c917292bcdd87e6b 1 parent 04823ff
@dhh dhh authored
View
4 railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb
@@ -45,8 +45,8 @@ def create
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 }
Please sign in to comment.
Something went wrong with that request. Please try again.