1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #24956 from zachattack/patch-1

Minor syntax change
This commit is contained in:
Jon Moss 2016-05-10 15:17:19 -04:00
commit 932655a4ef

View file

@ -328,7 +328,7 @@ this:
respond_to do |format| respond_to do |format|
if @user.save if @user.save
format.html { redirect_to @user, notice: 'User was successfully created.' } format.html { redirect_to @user, notice: 'User was successfully created.' }
format.js {} format.js
format.json { render json: @user, status: :created, location: @user } format.json { render json: @user, status: :created, location: @user }
else else
format.html { render action: "new" } format.html { render action: "new" }