-
-
Save Fro0z1k/0b7e8029ae94cc3cf78e to your computer and use it in GitHub Desktop.
To access url helpers (url_for, etc) from Rails console (Rails 3)
This file contains hidden or 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
include Rails.application.routes.url_helpers | |
default_url_options[:host] = "localhost" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment