Rails backend for an iOS app