Rails backend for iOS app