mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
A few more fixes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
04823ff48f
commit
4d2b297158
1 changed files with 2 additions and 2 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue