Created
May 16, 2017 15:53
-
-
Save wewert/a612963a12b8560a2aee6ec69725fa0d to your computer and use it in GitHub Desktop.
CFU Routes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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