Standard authorisation example with Ruby on Rails 4