Skip to content

Instantly share code, notes, and snippets.

@anicet
Created October 26, 2012 19:40
Show Gist options
  • Save anicet/3960988 to your computer and use it in GitHub Desktop.
Save anicet/3960988 to your computer and use it in GitHub Desktop.
root / torrents#index {:subdomain=>"admin"}
root / static#home
torrents GET /torrents(.:format) torrents#index
POST /torrents(.:format) torrents#create
new_torrent GET /torrents/new(.:format) torrents#new
edit_torrent GET /torrents/:id/edit(.:format) torrents#edit
torrent GET /torrents/:id(.:format) torrents#show
PUT /torrents/:id(.:format) torrents#update
DELETE /torrents/:id(.:format) torrents#destroy
RorTorrent::Application.routes.draw do
constraints :subdomain => 'admin' do
root :to => 'torrents#index'
end
root :to => 'static#home'
get 'torrents', :to => 'torrents#index'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment