Ruby on Rails class example