Skip to content

Instantly share code, notes, and snippets.

@mtodd
Created March 30, 2009 23:53
Show Gist options
  • Save mtodd/87960 to your computer and use it in GitHub Desktop.
Save mtodd/87960 to your computer and use it in GitHub Desktop.
use Rack::Auth::Basic do |login, password|
account = Account.find_by_login(login)
account.authenticate(password)
end
run Fuck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment