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

How can i tell to devise to look at some other views?

Gems / Libraries • Asked by Stefan Dabizljevic

Hey i have some problem with devise. I already created devise model for User and after that i run command rails g devise:views without user at the and. And now i decided that i must to have couple more devise model for authenticating and i create one for customer and than i run rails g devise:views customers and now i have views for customers. But every time when i try customers/sign_in this give me error because he immediatey render view from devise/session/new folder. which is for first model(User). How i can tell him when i'm go to customers/sign_in he should to render customer/session/new.html.erb? If somebody had some similar problem pls help:)
Tnx in advance!

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 29,763+ 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.