Backend Example in Rals for Angular (Rails Controller)