diff options
author | Jon Moss <maclover7@users.noreply.github.com> | 2016-05-10 15:17:19 -0400 |
---|---|---|
committer | Jon Moss <maclover7@users.noreply.github.com> | 2016-05-10 15:17:19 -0400 |
commit | 932655a4ef61083da98724bb612d00f89e153c46 (patch) | |
tree | 36c0f55d21115aa03e25a3eda15afe6dbf819b21 /guides | |
parent | 6dec7645192bd89d81d47542255a346f93710830 (diff) | |
parent | bb53774a91f9bef963f56c019fa8bea12a0f3435 (diff) | |
download | rails-932655a4ef61083da98724bb612d00f89e153c46.tar.gz rails-932655a4ef61083da98724bb612d00f89e153c46.tar.bz2 rails-932655a4ef61083da98724bb612d00f89e153c46.zip |
Merge pull request #24956 from zachattack/patch-1
Minor syntax change
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/working_with_javascript_in_rails.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/working_with_javascript_in_rails.md b/guides/source/working_with_javascript_in_rails.md index c58aee96db..c1dfcab6f3 100644 --- a/guides/source/working_with_javascript_in_rails.md +++ b/guides/source/working_with_javascript_in_rails.md @@ -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" } |