how to display devise error messages when i'm putting the login in and sign up forms in same page

Viewed 24123

I'm using devise and I put the login and sign up forms in the same page, now when I write invalid login details or don't fill required input data at the sign up form.

I'm redirecting to the /users page if I'm trying to register or to the /users/sign_in if I try to login with the errors i made...

I want to stay in the same page and show the errors in the same page.

how can I do it?

thanks you very much, I need a quick help :)

5 Answers
Related