Ask A Question


You’re not receiving notifications from this thread.

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

Stefan Dabizljevic asked in Gems / Libraries

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!

Join the discussion
Create an account Log in

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

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

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