AngularJS acts as the frontend, whereas Rails acts as the backend and provides the RESTful API.
With JavaScript frameworks like AngularJS, JSON is generally the language used to receive messages from the server (rather than XML).
The Devise and OmniAuth Ruby gems can take care of authentication and user logins.
]]>