get “/signup/employer” => “devise/registrations#new” ,:as=>:useremp
get “/signup/contractor” => “devise/registrations#new”,:as=>
:usercontract
Both routes points to controller -> registrations and action -> new.When
i hit the URL /signup/employer then my form_for should have the field as
Employer and Contractor for /signup/contractor.
Need the form_for based on the routes,how to achieve this
get “/signup/employer” => “devise/registrations#new” ,:as=>:useremp
get “/signup/contractor” => “devise/registrations#new”,:as=>
:usercontract
Both routes points to controller → registrations and action → new.When
i hit the URL /signup/employer then my form_for should have the field as
Employer and Contractor for /signup/contractor.
Need the form_for based on the routes,how to achieve this
Try something like:
get “/signup/:user_type” => “devise/registrations#new”
Then you should see something like this in params: