Guest User

Untitled

a guest
Feb 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. match(%r{/host/(.*$)}).
  2. to(:controller => 'home',
  3. :action => 'host', :host => "[1]").name(:host)
  4.  
  5. url(:host, "foo.com")
  6.  
  7. had to use regex because
  8.  
  9. match('/host/:host').
  10. to(:controller => 'home',
  11. :action => 'host').name(:host)
  12.  
  13. doesn't mach
  14. /host/foo.something.com
Add Comment
Please, Sign In to add comment