Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: ed626035cc
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.597 kB
ActionController::Routing::Routes.draw do |map|
# Prefix all the unshortened urls with /unshortened
map.with_options :path_prefix => :unshortened do |unshortened|
unshortened.resources :addresses, :member => { :goto => :get }
unshortened.resources :tags,
:only => [:show],
:collection => { :namesearch => :get, :find => :get }
end
# The root page where you create new addresses
map.root :controller => :addresses, :action => :new
# Shortcut for /unshortened/addresses/xyz/goto
map.goto_shortened ':id', :controller => :addresses, :action => :goto
end
Jump to Line
Something went wrong with that request. Please try again.