jeudi 15 décembre 2016

Company has_many users (Rails and Devise)

I have a problem. It turns out that I have 2 models, Users and Companies. I need every company to have its users, until then it's easy, Company:: has_many Users Througth users_company.

What I need is to get the company to invite users and when they log in to the company panel.

By the way also normal users are logged.

Is there any guide please?

Excuse my English, I speak Spanish.

Thank you.

Aucun commentaire:

Enregistrer un commentaire