wiring up client and rails app