Skip to content

Instantly share code, notes, and snippets.

@vanderhoop
Created September 3, 2014 22:27
Show Gist options
  • Select an option

  • Save vanderhoop/5a47130dfd26983f591b to your computer and use it in GitHub Desktop.

Select an option

Save vanderhoop/5a47130dfd26983f591b to your computer and use it in GitHub Desktop.

Straight CURDing

We're going to continue with the work from today and finish the following user stories.

Admin User Stories

image

  1. As an admin, I can seed the database with a json file of cheeses, so that I can develop and test my application better.
  2. As an admin, I can visit a minimalist index page that shows all of the cheese resources.
  3. As an admin, I can visit each cheese in the cheese resource, so that I can view specifics about the cheese.
  4. As an admin, I can add new cheeses.
  5. As an admin, I can remove cheeses.
  6. As an admin, I can make changes to a cheese and update it from the cheese's page.

To edit a cheese, you'll need an edit form. This form will be displayed whenever a GET request is made to /cheeses/:id/edit

To update a cheese, you'll need to send a PUT request from the edit form to /cheeses/:id Don't forget method override!

Bonus

image

Revisit WDInstagram assignment.

This time ignoring the Entry class. Straight up just stick it in Redis.

Then style the cheese off of it.

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