Skip to content

Instantly share code, notes, and snippets.

@harryworld
Created November 12, 2014 21:43
Show Gist options
  • Save harryworld/91b5b1fb3f047cbd43e8 to your computer and use it in GitHub Desktop.
Save harryworld/91b5b1fb3f047cbd43e8 to your computer and use it in GitHub Desktop.
JSON API Quiz

Here are the questions:

  1. How to keep my current changes, but also get the latest code from owner repository?

  2. How many routes do we have right now? (Hint: rake routes)

  3. What is the URL pattern for the routes?

  4. What do the status code 200, 201, 404, 500 mean?

  5. Which line of code allow us to use the API without authenticity token?

  6. Where is the code for skipping the Record Not Found exception page?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment