Homework for 9B

Review

Topics covered: Layouts, partials, styles

Exercises

E1: Conceptual Review

  1. Why do we use layouts?
  2. What folder do they live in?
  3. Why do we use partials?
  4. How do we name partials?
  5. What's the code used inside a view to render partials?
  6. Why do we pass partials variables? What's the code to do that?

E2: Reddit on and on and on...

You guessed it: keep building Reddit! This time, continue what you started this morning. Factor some of your code into partials if you notice any repetition. Then add some CSS to make it pretty.

E3 (Bonus!): Pull yourself up by your

Figure out how to install a gem that installs bootstrap. Then incorporate it in your design in some way.