Skip to content

Instantly share code, notes, and snippets.

@igrabes
Created July 1, 2011 03:21
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 igrabes/1057810 to your computer and use it in GitHub Desktop.
Save igrabes/1057810 to your computer and use it in GitHub Desktop.
6-30-11 Rake Routes
root /(.:format) {:controller=>"pages", :action=>"home"}
sessions GET /sessions(.:format) {:action=>"index", :controller=>"sessions"}
POST /sessions(.:format) {:action=>"create", :controller=>"sessions"}
new_session GET /sessions/new(.:format) {:action=>"new", :controller=>"sessions"}
edit_session GET /sessions/:id/edit(.:format) {:action=>"edit", :controller=>"sessions"}
session GET /sessions/:id(.:format) {:action=>"show", :controller=>"sessions"}
PUT /sessions/:id(.:format) {:action=>"update", :controller=>"sessions"}
DELETE /sessions/:id(.:format) {:action=>"destroy", :controller=>"sessions"}
job_question_answers GET /jobs/:job_id/questions/:question_id/answers(.:format) {:action=>"index", :controller=>"answers"}
POST /jobs/:job_id/questions/:question_id/answers(.:format) {:action=>"create", :controller=>"answers"}
new_job_question_answer GET /jobs/:job_id/questions/:question_id/answers/new(.:format) {:action=>"new", :controller=>"answers"}
edit_job_question_answer GET /jobs/:job_id/questions/:question_id/answers/:id/edit(.:format) {:action=>"edit", :controller=>"answers"}
job_question_answer GET /jobs/:job_id/questions/:question_id/answers/:id(.:format) {:action=>"show", :controller=>"answers"}
PUT /jobs/:job_id/questions/:question_id/answers/:id(.:format) {:action=>"update", :controller=>"answers"}
DELETE /jobs/:job_id/questions/:question_id/answers/:id(.:format) {:action=>"destroy", :controller=>"answers"}
job_questions GET /jobs/:job_id/questions(.:format) {:action=>"index", :controller=>"questions"}
POST /jobs/:job_id/questions(.:format) {:action=>"create", :controller=>"questions"}
new_job_question GET /jobs/:job_id/questions/new(.:format) {:action=>"new", :controller=>"questions"}
edit_job_question GET /jobs/:job_id/questions/:id/edit(.:format) {:action=>"edit", :controller=>"questions"}
job_question GET /jobs/:job_id/questions/:id(.:format) {:action=>"show", :controller=>"questions"}
PUT /jobs/:job_id/questions/:id(.:format) {:action=>"update", :controller=>"questions"}
DELETE /jobs/:job_id/questions/:id(.:format) {:action=>"destroy", :controller=>"questions"}
jobs GET /jobs(.:format) {:action=>"index", :controller=>"jobs"}
POST /jobs(.:format) {:action=>"create", :controller=>"jobs"}
new_job GET /jobs/new(.:format) {:action=>"new", :controller=>"jobs"}
edit_job GET /jobs/:id/edit(.:format) {:action=>"edit", :controller=>"jobs"}
job GET /jobs/:id(.:format) {:action=>"show", :controller=>"jobs"}
PUT /jobs/:id(.:format) {:action=>"update", :controller=>"jobs"}
DELETE /jobs/:id(.:format) {:action=>"destroy", :controller=>"jobs"}
pages_home GET /pages/home(.:format) {:controller=>"pages", :action=>"home"}
contact /contact(.:format) {:controller=>"pages", :action=>"contact"}
about /about(.:format) {:controller=>"pages", :action=>"about"}
login /login(.:format) {:controller=>"sessions", :action=>"new"}
logout /logout(.:format) {:controller=>"sessions", :action=>"destroy"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment