Skip to content

Latest commit

 

History

History
executable file
·
8 lines (7 loc) · 736 Bytes

w07d2.md

File metadata and controls

executable file
·
8 lines (7 loc) · 736 Bytes

Assessment

Week 7 | Day 2

  1. Given 3 branch master, feature1, and feature2. If you made a pull request on feature1 and feature2 on github and merged feature1. Then when you try to merge feature2 you realize that there are conflicts. What are the step you have to do so that you can merge feature2 on github?
  2. How do we make sure that resources :posts have api/ infront of every path?
  3. If we nested our resources :posts inside api what is the folder structure going to be like? Also what is the first 2 lines of posts_controller.rb going to be like?
  4. If we were to render all posts using json, what would the line of code be?
  5. If we were to render just the status, what would the line of code be?