Skip to content

Instantly share code, notes, and snippets.

@Schwad
Created September 5, 2017 13:22
Show Gist options
  • Save Schwad/fb15697bc0d44d60b37d665deb649951 to your computer and use it in GitHub Desktop.
Save Schwad/fb15697bc0d44d60b37d665deb649951 to your computer and use it in GitHub Desktop.
def extra_curricular_activity
@book = Book.find(params[:id])
render 'show'
@book.update_column(:title, 'Surprise Surprise')
end
#=> SQL (7.1ms) UPDATE "books" SET "title" = 'Surprise Surprise' WHERE "books"."id" = $1 [["id", 1]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment