Created
August 22, 2011 11:31
-
-
Save manuelmorales/1162183 to your computer and use it in GitHub Desktop.
How to call url_for from a model or somewhere else
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
# Let's break MVC! | |
include ActionController::UrlWriter | |
self.class.default_url_options = {:host => "localhost"} | |
home_url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment