# Rails with Angular and Devise

**URL:** <https://www.ruby-forum.com/t/rails-with-angular-and-devise/230220>\
**Category:** Rails\
**Created:** [June 5, 2014, 7:50am UTC](https://www.ruby-forum.com/t/rails-with-angular-and-devise/230220 "2014-06-05T07:50:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [June 5, 2014, 7:50am UTC](https://www.ruby-forum.com/t/rails-with-angular-and-devise/230220/1 "2014-06-05T07:50:22Z")

</div>

I had a non-Angular Rails app with Devise powering the authentication.  
Almost all of it.

However as we are moving it to AngularJS, had a question or two about  
how  
to integrate that with Angular.

1. What all parts of Devise can still be used?
2. What are best practices around how to maintain session in angular?
3. Also, how do I manage multiple roles(_based on 2 different  
models_,  
both devise authenticable) ?
