Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

User Authentication with Devise | GoRails - GoRails

General • Asked by Chris Oliver

what is debug view you have ? when you hit the error? u have some cool gem?

Yep! It's called better_errors. Checkout this episode:

what if I want to render other views (totally custom views) not even generated with devise?

easy fix: via

config.scoped_views = true

Awesome vid! Hey Chris, I'm setting up my authentication from scratch. If I wanted different users ie admin, client, employee is it okay to create separate models, controllers, and views for each of their authentication processes?

Absolutely! Just be aware that separate models means your users can't ever switch roles from employee to client or client to admin for example. This is definitely the simplest route, but you can also check out rolify if you want to use a single User model and allow users to have different privileges at will.

There will be no need to change rolls. So I'll probably stick my current method. I'll check out rolify. Thanks, Chris!

I plan on doing an episode on it in the future so keep your eye out for that. :)

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 31,353+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.