Creating an additional related model with Devise

Posted by Tim Sullivan on Stack Overflow See other posts from Stack Overflow or by Tim Sullivan
Published on 2010-06-12T05:03:28Z Indexed on 2010/06/12 5:12 UTC
Read the original article Hit count: 259

Filed under:
|

I've started to implement a new project using Devise, which is pretty fantastic for handling users. However, when a user signs up, they're not just creating a User model, but also need to create a related Account model that represents the company. Additional users will also belongs_to this Account model.

I can't seem to find a hook for this in Devise, though it seems like a pretty common pattern. What's the best practice for this?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about devise