Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding additional fields (with validation) to Devise view/model in Rails app

It seems there's not a whole lot of documentation out there covering how to add custom fields to a Devise authentication solution in a Rails 3 app.

Along with the required e-mail and password for users to sign up, I'd like a few other custom fields put in and validated and since there are no controllers generated with Devise, how does one do this?

like image 236
cucumber Avatar asked Sep 29 '10 04:09

cucumber


1 Answers

I needed this same thing. There is a great article I found to help me:

http://ykyuen.wordpress.com/2011/03/03/rails-%E2%80%93-add-custom-fields-to-devise-user-model/

like image 118
Gabe M Avatar answered Sep 25 '22 01:09

Gabe M