gist: 1512 Download_button fork
public
Public Clone URL: git://gist.github.com/1512.git
Ruby
1
2
3
4
5
6
7
8
9
Router.prepare do |r|
  r.match("/something",
    :user_agent => %r[(?:one|two|three)]
  ).to(:controller => "foo", :action => "bar")
 
  r.match("/something/else",
    :user_agent => %r[(?:four|five|six)]
  ).to(:controller => "foo", :action => "bar")
end

Owner

engineyard

Fork Of

Revisions