Skip to content

Instantly share code, notes, and snippets.

@febuiles
Created November 10, 2008 21:43
Show Gist options
  • Select an option

  • Save febuiles/23644 to your computer and use it in GitHub Desktop.

Select an option

Save febuiles/23644 to your computer and use it in GitHub Desktop.
$ ./script/console
Loading development environment (Rails 2.1.0)
>> include ActionView::Helpers::UrlHelper
=> Object
>> include ActionController::UrlWriter
=> Object
>> default_url_options[:host] = "foo"
=> "foo"
>> url_for(:controller => 'graphs', :action => 'delivery', :only_path => false, :start_date => "1", :end_date => "1")
=> "http://foo/admin/graphs/delivery?end_date=1&start_date=1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment