Skip to content

Instantly share code, notes, and snippets.

@anaumov
Created January 23, 2019 06:49
Show Gist options
  • Save anaumov/eb8897e1382707576cae9d4c22bb3660 to your computer and use it in GitHub Desktop.
Save anaumov/eb8897e1382707576cae9d4c22bb3660 to your computer and use it in GitHub Desktop.
# http://localhost:3000/users/:id/update
def update
user = User.find(params[:id])
user.update!(name: params[:name])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment