Basic DIY Authorization in Ruby on Rails
shakycode.com