Skip to content

Instantly share code, notes, and snippets.

@ruckus
Created April 28, 2009 21:47
Show Gist options
  • Save ruckus/103419 to your computer and use it in GitHub Desktop.
Save ruckus/103419 to your computer and use it in GitHub Desktop.
doc = ConvertableDocument.find(params[:id])
doc.update_attribute(:confirmed_at, Time.now.utc)
redirect_to(:action => :index) and return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment