We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 938a8ff commit e5dcf87Copy full SHA for e5dcf87
index.html
@@ -2656,7 +2656,8 @@ <h2 id="Sync">Backbone.sync</h2>
2656
<pre>
2657
def update
2658
account = Account.find params[:id]
2659
- account.update_attributes params.require(:account).permit(:name, :otherparam)
+ permitted = params.require(:account).permit(:name, :otherparam)
2660
+ account.update_attributes permitted
2661
render :json => account
2662
end
2663
</pre>
0 commit comments