Code of iOSOnRails application