Authorization application for Ruby on Rails