mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-23 13:58:06 -05:00
one more out-of-date-doc tweak
This commit is contained in:
@@ -1275,7 +1275,7 @@ model.save(); // Sends a POST to "/collection/id", with "_method=PUT"
|
||||
def update
|
||||
account = Account.find(params[:id])
|
||||
account.update_attributes JSON.parse params[:model]
|
||||
render :json => {:model => account}
|
||||
render :json => account
|
||||
end
|
||||
</pre>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user