Revision: 28608
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 10, 2010 06:31 by insanedreamer
Initial Code
include Rails.application.routes.url_helpers # set host in default_url_options: default_url_options[:host] = "localhost" # can then use: url_for() # can check existing routes: edit_user_url(User.first) => "http://localhost/user/1/edit"
Initial URL
Initial Description
in Rails 2, use `include ActionController::UrlWriter` instead.
Initial Title
To access url helpers (url_for, etc) from Rails console (Rails 3)
Initial Tags
rails
Initial Language
Rails