Skip to content

Instantly share code, notes, and snippets.

@vanderhoop
Created January 5, 2015 15:04
Show Gist options
  • Save vanderhoop/9a8bca4030b469a0ad7b to your computer and use it in GitHub Desktop.
Save vanderhoop/9a8bca4030b469a0ad7b to your computer and use it in GitHub Desktop.

Bachelorette Profile Pages

This is a partner exercise.

Directions

With your partner, discuss the following questions:

  1. How can we write a single route handler that dynamically handles each of the bachelorette's profile pages.
  • Example usage: if a GET request is made to "/bachelorettes/alissa", the user should see the information for Alissa, while if a GET request is made to "/bachelorettes/nicole", the user should see the information for Nicole.
  1. Do we need to create a new erb file, or can we reuse an existing template?
  2. What logical steps will the code need to take to find the information for a particular bachelorette, based on her name? (ie, how will you find the info for the bachelorette named Samantha when a GET request is made to "/bachelorettes/samantha" ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment