mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
commit
932655a4ef
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ this:
|
|||
respond_to do |format|
|
||||
if @user.save
|
||||
format.html { redirect_to @user, notice: 'User was successfully created.' }
|
||||
format.js {}
|
||||
format.js
|
||||
format.json { render json: @user, status: :created, location: @user }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
|
|
Loading…
Reference in a new issue