can i use single devise for multiple models.

13 views
Skip to first unread message

mack gille

unread,
Jul 9, 2013, 5:31:02 AM7/9/13
to rubyonra...@googlegroups.com
Hi,
i need to use authentication for the 4 models,is it possible to use
single devise for all models,if yes plz let me know them clearly.
if not what is the solution.

Thankyou

--
Posted via http://www.ruby-forum.com/.

Tamara Temple

unread,
Jul 9, 2013, 5:39:26 AM7/9/13
to rubyonra...@googlegroups.com

On Jul 9, 2013, at 2:31 AM, mack gille <li...@ruby-forum.com> wrote:
> i need to use authentication for the 4 models,is it possible to use
> single devise for all models,if yes plz let me know them clearly.
> if not what is the solution.

Maybe you could direct your question to the devise mailing list and get better help:

https://groups.google.com/group/plataformatec-devise

You might have found that if you read the README at the devise repository page:

https://github.com/plataformatec/devise

More info might also be available in the wiki:

https://wiki.github.com/plataformatec/devise

Colin Law

unread,
Jul 9, 2013, 4:24:16 PM7/9/13
to rubyonra...@googlegroups.com
On 9 July 2013 10:31, mack gille <li...@ruby-forum.com> wrote:
> Hi,
> i need to use authentication for the 4 models,is it possible to use
> single devise for all models,if yes plz let me know them clearly.
> if not what is the solution.

As I suggested in a separate thread, I advise just having a single
model for all users, then possibly use cancan gem to provide the
different roles.

Colin
Reply all
Reply to author
Forward
0 new messages