Skip to content

Instantly share code, notes, and snippets.

@cowboycoded
Created April 11, 2011 18:23
Show Gist options
  • Save cowboycoded/913995 to your computer and use it in GitHub Desktop.
Save cowboycoded/913995 to your computer and use it in GitHub Desktop.
class LockController < ApplicationController
def unlock
if Lock.passwords_match?(params[:password])
session[:lock_opened] = true
else
redirect_to :action=>:login
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment