sample for Ruby on Rails and iOS app