In my application I have two different members – User and Company. I have implemented authentication based on Devise. Now, when I visit “/members/sign_up” I have one common form for both of them.
I’d like to have 2 different links for sign up, for example – “members/user/sign_up” and “members/company/sign_up” with member’s specific forms.
How it could be achieved ? Thanks.
This might do what you’re looking for — update your routes as follows:
This assumes you have two devise models.