...

/

Generating the Product Model

Generating the Product Model

Generate the Product model for the application.

We'll cover the following...

We now have a straightforward implementation of the User model, but the moment of truth has come. We will customize the JSON output and add a second resource: the user’s products. These are the elements that the user will sell in the application and will be directly linked.

If you are familiar with Rails, you may already know something about this. For those who don’t know, we will associate the User model with the Product ...