Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 685 Bytes

answers.md

File metadata and controls

17 lines (12 loc) · 685 Bytes
  1. What is the difference between new and create for a model? Create automatically saves the model while new does not.

  2. What command combined with new will emulate the same behavior as create? save

  3. What is the column that exists on every table but we did NOT define? timestamp

  4. What single line of ruby code can insert a cat with the name "hat" in the database? c = Cat.create name:hat

  5. What was the most confusing part over the last few weeks? Probably connecting the views and model and how everything works together.

  6. How did you like this homework in comparison with the others? I like this hw a lot more since it was more structured and I understand things better.