sample for Ruby on Rails