Skip to content

Instantly share code, notes, and snippets.

@wewert
Created May 16, 2017 15:53
Show Gist options
  • Save wewert/a612963a12b8560a2aee6ec69725fa0d to your computer and use it in GitHub Desktop.
Save wewert/a612963a12b8560a2aee6ec69725fa0d to your computer and use it in GitHub Desktop.
CFU Routes
CFU questions to put in gist
* What terminal command will return information about your routes? rake routes
* What 5 pieces of info will `rake routes` give you? Prefix, Verb, URI Pattern, Controller#Action
* Give an example of a link to a cats edit page named “Edit”: link_to "Edit", edit_cat_path
* Give an example of a link to a cats edit page named “Edit cat ‘Spunky’” or whatever the name of your cat is…: link_to "Edit Cat:" #{cat.name}, edit_cat_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment