user970203
user970203

Reputation: 81

Devise - One Model and Multiple Different Registration Views

I want to use Devise for authentication in rails 3.1.

I've created a pricing table on a static "signup" page that has three options. Level A, B and C.

I want to either pass the signup selection to devise as a parameter, or create separate views for the different options, but use the same User model.

I'm not really sure which way to go, or how to customize devise in a way to handle this.

Any input would be greatly appreciated! We're rails newbies.

Upvotes: 2

Views: 635

Answers (1)

Tilo
Tilo

Reputation: 33732

1) put an attribute "subscription_level" into your user model

2) create views which determine what the value of current_user.subscription_level is, and which display different content depending on it's value...

Upvotes: 2

Related Questions