Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3701 from craigmichaelmartin/master

improve readability for website
  • Loading branch information...
commit 5f871af38ad8af9020f4d6d01ad45c6dc42f9cf5 2 parents c3c3d6a + e5dcf87
@akre54 akre54 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  index.html
View
3  index.html
@@ -2656,7 +2656,8 @@ <h2 id="Sync">Backbone.sync</h2>
<pre>
def update
account = Account.find params[:id]
- account.update_attributes params.require(:account).permit(:name, :otherparam)
+ permitted = params.require(:account).permit(:name, :otherparam)
+ account.update_attributes permitted
render :json => account
end
</pre>
Please sign in to comment.
Something went wrong with that request. Please try again.