Skip to content

Instantly share code, notes, and snippets.

@JunichiIto
Created December 5, 2013 17:41
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 JunichiIto/7809860 to your computer and use it in GitHub Desktop.
Save JunichiIto/7809860 to your computer and use it in GitHub Desktop.
Confirm url with url_for.
$ 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