Skip to content

Instantly share code, notes, and snippets.

@javiervidal
Created December 5, 2011 15:05
Show Gist options
  • Save javiervidal/1433880 to your computer and use it in GitHub Desktop.
Save javiervidal/1433880 to your computer and use it in GitHub Desktop.
To access url helpers (url_for, etc) from Rails console (Rails 3)
include Rails.application.routes.url_helpers
default_url_options[:host] = "localhost"
@Overload119
Copy link

How can I automatically load these in Rails console?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment