I want http://localhost:3000/note-1828
to map to a controller action. I've tried this:
map.connect "note-:id",
:controller => "annotations",
:action => "show",
:requirements => { :id => /\d+/ }
But it doesn't seem to work (No route matches "/note-1828" with {:method=>:get}
). What should I do instead?