Rails api and website