views:

368

answers:

1

I am using Devise for Rails. In the default registration process, Devise require users to type the password twice for validation. How can I disable it?

Thanks all. :)

+1  A: 

I am not familiar with Devise but if you have access to the model in the controller before save/validation could you do something like the following

model.password_confirmation = model.password
model.save
Will
thanks mate. it's a great idea. :)
siulamvictor