开发者

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 vie开发者_Go百科ws 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.


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...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜