Ruby version of the backend for the iOS app