Skip to content

Instantly share code, notes, and snippets.

@carllerche
Created July 23, 2008 03:36
Show Gist options
  • Save carllerche/1510 to your computer and use it in GitHub Desktop.
Save carllerche/1510 to your computer and use it in GitHub Desktop.
Router.prepare do |r|
r.match("/something",
:user_agent => %r[(?:one|two|three)]
).to(:controller => "foo", :action => "bar")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment