example for Ruby on Rails