Created
December 5, 2013 17:41
-
-
Save JunichiIto/7809860 to your computer and use it in GitHub Desktop.
Confirm url with url_for.
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
$ rails c | |
pry(main)> app.url_for user_registration_url | |
"http://localhost:3000/users" | |
pry(main)> app.url_for new_user_registration_url | |
"http://localhost:3000/users/sign_up" | |
pry(main)> app.url_for new_user_registration_url(:user) | |
"http://localhost:3000/users/sign_up.user" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment