Ask A Question

Notifications

You’re not receiving notifications from this thread.

User Authentication with Devise | GoRails - GoRails

Chris Oliver asked in General

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

Reply

Yep! It's called better_errors. Checkout this episode: https://gorails.com/episode...

Reply

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

Reply

easy fix: via

config.scoped_views = true

Reply

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?

Reply

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. https://github.com/RolifyCo...

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.