gary (owner)

Revisions

gist: 37640 Download_button fork
public
Public Clone URL: git://gist.github.com/37640.git
Embed All Files: show embed
router.rb #
1
2
3
4
5
6
  match(:subdomain => /(\w+)/).to(:namespace => 'newspapers') do |sd|
    sd.match('/').to(:controller => ':subdomain[1]', :action => 'index')
  end
 
  match('/').to(:controller => 'basic_newspaper', :action => 'index')