I have a model called a company, and one is called a user, and the User belongs to the Company, and the Company has many users.
But I want to keep the owner of the main administrator company on the company model, but I want to do this with a custom name.
So, I want to do this: comapany.owner.name.
How to do it in Rails 3?
source
share