I'm building a Rails 3
app, where I need to give users specific roles based on the path they take to sign up on the site. I am using Devise and Cancan.
So for instance, the path
new-fundraiser
(or /users/new/fundraiser
)
Needs to set user.fundraiser = true
on user creation, and
new-charity-user
(or /users/new/charity
)
Needs to set user.charity_owner = true
on user creation.
What is the easiest / best-practice way to accomplish this using Devise and Cancan?