Skip to content

Instantly share code, notes, and snippets.

@Joeventures
Created October 26, 2015 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Joeventures/586b325126f9fc2d8f71 to your computer and use it in GitHub Desktop.
Save Joeventures/586b325126f9fc2d8f71 to your computer and use it in GitHub Desktop.
1.1. Presumably it would delete the first post by the comment author. A user would need to have a has_many :posts relationship.
1.2. It would create a new comment in a post titled "New Years Resolution." It tells us that Post has a has_many relationship to comments.
2.1. One is with a query string, and the other is with a body.
2.2. Through the browser, at the end of a URL.
3.1. Less specific <== HTML element, Class, ID ==> More specific
3.2. Content, Padding, Border, Margin
3.3. Inline, Block, Inline-Block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment