# Different devise confirmation behaviour for same model

**URL:** <https://www.ruby-forum.com/t/different-devise-confirmation-behaviour-for-same-model/240696>\
**Category:** Rails\
**Created:** [April 26, 2014, 5:21am UTC](https://www.ruby-forum.com/t/different-devise-confirmation-behaviour-for-same-model/240696 "2014-04-26T05:21:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [April 26, 2014, 5:21am UTC](https://www.ruby-forum.com/t/different-devise-confirmation-behaviour-for-same-model/240696/1 "2014-04-26T05:21:10Z")

</div>

Hi,

I want to have different email confirmation behaviour for same model  
depending on certain conditions.

_Case 1:_ User signs up on his own using an email and password, gets  
Mail  
Template 1 (the mail only asks for email confirmation, he has already  
set  
the password)

_Case 2:_ A new user is added in model explicitly by another registered  
user. The new user gets Mail Template 2, which asks him to reset the  
password (reset should by default confirm his account as well)

Is this possible to achieve?

I was going through Devise  
page[https://github.com/plataformatec/devise/wiki/How-To:-Override-confirmations-so-users-can-pick-their-own-passwords-as-part-of-confirmation-activation](https://github.com/plataformatec/devise/wiki/How-To:-Override-confirmations-so-users-can-pick-their-own-passwords-as-part-of-confirmation-activation)where  
we can override confirmation process to let user set the password and  
auto-confirm the account during this process. But I think this will  
happen  
for all users added in model. I want to customize this.

## Thanks.

Regards,  
Ankur

---

<div class="post-metadata">

**Author:** ![richnusgeeks](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bc8723/32.png) [@richnusgeeks](https://www.ruby-forum.com/u/richnusgeeks)\
**Post date:** [April 26, 2014, 3:45pm UTC](https://www.ruby-forum.com/t/different-devise-confirmation-behaviour-for-same-model/240696/2 "2014-04-26T15:45:41Z")

</div>

On Apr 25, 2014, at 11:19 PM, Ankur K. wrote:

> 

Have you looked at Devise Invitable yet? That lets current members  
invite other members, but does not set their password, so they have to  
choose one before they are fully brought into the fold.

Walter
