Skip to content

Instantly share code, notes, and snippets.

@sferik
Created April 4, 2013 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sferik/5306676 to your computer and use it in GitHub Desktop.
Save sferik/5306676 to your computer and use it in GitHub Desktop.

WDI Homework - April 3, 2013

Sinatra

  1. Finish creating your own version of http://pairprogrammingbot.com/ using Sinatra, ERB templates, and custom CSS (Aron).
  2. Continue working on the Sinatra database application:
    1. Add a layout that yields to a template
    2. Add a /products route that lists all the products in the store database in an HTML table
    3. Add a root route (/) that contains links to the /users and /products pages
    4. Add a back button on /users and /products that takes you back to the home page
    5. Style the tables using CSS
    6. If the product is on sale, display an image in the table
    7. Add "zebra stripes" to the table (rows alternate background colors, making them easier to read across)

Submit the assignment by commiting and pushing a repository to GitHub (no need to submit to Schoology).

Bonus

Make every table header clickable so that they will sort on that column.

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