Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (14 sloc) 0.49 kb
ActionController::Routing::Routes.draw do |map|
map.root :controller => "twonks"
map.about 'about', :controller => "pages", :action => "about"
map.resources :twonks do |twonk|
twonk.resources :votes
end
map.namespace :admin do |admin|
admin.resources :sessions
admin.resources :twonks, :member => { :accept => :put }
end
map.connect 'admin', :controller => 'admin/twonks'
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
Jump to Line
Something went wrong with that request. Please try again.