one more out-of-date-doc tweak

This commit is contained in:
Jeremy Ashkenas
2010-10-28 01:11:04 -04:00
parent 0749421795
commit cd21480e8e

View File

@@ -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>