Created
March 22, 2012 01:22
-
-
Save bernardeli/2155001 to your computer and use it in GitHub Desktop.
include url_helpers
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
class Foo | |
def do_something | |
... | |
Rails.application.routes.url_helpers.my_awesome_routing_path | |
Rails.application.routes.url_helpers.my_awesome_routing_url(:host => 'http://your-domain.com') | |
... | |
end | |
end |
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
class Foo | |
include Rails.application.routes.url_helpers | |
def do_something | |
... | |
my_awesome_routing_path | |
my_awesome_routing_url(:host => 'http://your-domain.com') | |
... | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment