added rails part to backbone