The server file takes in the requests from clients and calls on the appropriate logic/views to send back a response to the client.
You can pass instance variables, or you can pass a local variable by passing it via :locals in erb.
The server file takes in the requests from clients and calls on the appropriate logic/views to send back a response to the client.
You can pass instance variables, or you can pass a local variable by passing it via :locals in erb.
## Models, Databases, Relationships in Rails | |
#### What is the difference between a primary key and a foreign key? | |
Where would we find a primary key? What would it be called by default? Where would we find a foreign key? | |
What is the naming convention for a foreign key? | |
Primary key can only appear once in a table, foreign key points to an object with a primary key in another table. Primary key is normally called id in postgres. | |
We would find a foreign key when we reference an object from another table. naming convention: table_id | |
#### Write down one example of: | |
* a `one-to-one `relationship. |
Group Member Names:
Everyone is generally available to work at any time. Drew would prefer to leave earlier when possible. Ali needs to run home and let dog out occasionally after school.