jackdempsey (owner)

Revisions

gist: 39745 Download_button fork
public
Public Clone URL: git://gist.github.com/39745.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
match(%r{/host/(.*$)}).
        to(:controller => 'home',
               :action => 'host', :host => "[1]").name(:host)
 
url(:host, "foo.com")
 
had to use regex because
 
match('/host/:host').
        to(:controller => 'home',
               :action => 'host').name(:host)
 
doesn't mach
/host/foo.something.com