Rails7 - easy project
Budget: $30 – $250 USD
Create a Rails project that shall give me the below output.
Models:
Company
Contact
Todo
Company:
Has_many :contacts
Has_many : todos
Contact:
Belongs_to :companies
Has_many : todos
Todo:
Belongs_to :companies
Belongs_to :contacts
How you are going to set up the above models/associations is not important to me – but the program shall be able to render the following list:
In view/companies/show.html.erb:
• All todos associated whit company and all todos associated with contacts who are associated with company
In view/contacts/show.html.erb:
• All todos associated with contact
Models:
Company
Contact
Todo
Company:
Has_many :contacts
Has_many : todos
Contact:
Belongs_to :companies
Has_many : todos
Todo:
Belongs_to :companies
Belongs_to :contacts
How you are going to set up the above models/associations is not important to me – but the program shall be able to render the following list:
In view/companies/show.html.erb:
• All todos associated whit company and all todos associated with contacts who are associated with company
In view/contacts/show.html.erb:
• All todos associated with contact