Created
October 26, 2015 13:26
-
-
Save BrianDunlap89/1297d20ba116e431aa55 to your computer and use it in GitHub Desktop.
Quiz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Section 1 | |
| 1a. It would destroy the first post (based on its unique id) that belonged to the user who owned that particular comment. | |
| 1b. You would need the association User has_many :posts | |
| 2a. For the post titled "New Years Resolution" it would create a comment with the column values listed in the hash. | |
| 2b. We can infer that the Post table has a value :title. Because it has an association with User, we can also infer there is a user_id column in the table. | |
| Section 2 | |
| 1. Queries and post requests | |
| 2. Form data can be dynamically received (in a search bar, for instance), packaged by the browser, and then received and interpreted by the server. | |
| Section 3 | |
| 1. Most specific: id, then class, then html element | |
| 2. border, margin, padding, content | |
| 3. block, inline, inline-block |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment