Skip to content
Machiste N. Quintana edited this page Apr 4, 2014 · 6 revisions

###Example Beyonce App

###Routes Your application should include each of these routes.

Sinatra only uses the HTTP Verbs and the URLs. Rails additionally uses Controller and Action - these are just here for reference for now.

HTTP Verb URL Controller Action used for Must create View?
GET /sets Set index display all sets in an overview Yes
GET /sets/new Set new return an HTML form for creating a new set Yes
POST /sets Set create create a new set No
GET /sets/beyonce Set show display a specific set Yes
GET /sets/beyonce/play Set a custom one! play a specific set Yes
GET /sets/beyonce/edit Set edit return an HTML form for editing a set Yes
PUT /sets/beyonce Set update update a specific set No
DELETE /sets/beyonce Set destroy delete a specific set Yes
Clone this wiki locally