How do i create another table when a user signs up?
When a user signs up, i ask them for their company name so i can then associate that user with a company. How would i go about doing this? I am using devise, so somehow i will need to store the company name in the company table.
Please help :D
Hey Alan, check out this episode: https://gorails.com/episodes/forum-nested-attributes-and-fields-for
Basically what you can do is setup a form that assigns attributes to two models at the same time. This will let you create a user and their associated Company record in a single form. 👍