added rails API