Skip to content

Instantly share code, notes, and snippets.

View eddymul's full-sized avatar

Eddy Mulyono eddymul

View GitHub Profile
@stengland
stengland / routes.rb
Created August 2, 2013 17:44
External URLs in rails routes
MyApp::Application.routes.draw do
# External urls
scope host: 'www.example.com' do
get 'thing' => 'dev#null', as: :thing
end
end
# Use thing_url in your veiws (thing_path would not include the host)
# thing_url => "http://www.example.com/thing"