Rails app server with api connection