Skip to content

Instantly share code, notes, and snippets.

@DavidQL
Created February 13, 2013 23:55
Show Gist options
  • Save DavidQL/4949535 to your computer and use it in GitHub Desktop.
Save DavidQL/4949535 to your computer and use it in GitHub Desktop.
def update
@user = current_user
if @user.update_attributes(params[:user])
render :json => @user
else
render :json => @user.errors
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment