I understand the question is about Ruby on Rails to iOS/Andriod. Have you considered from Ruby to iOS/Andriod? Have a look at RubyMotion. I think its easier with RubyMotion to connect mobile app iOS/Andriod with the Ruby application rather than via web application ROR.