Connection to rails server successful