Skip to content

Instantly share code, notes, and snippets.

@sapient
Created April 27, 2012 07:18
Show Gist options
  • Save sapient/2506836 to your computer and use it in GitHub Desktop.
Save sapient/2506836 to your computer and use it in GitHub Desktop.
Forum routes
namespace :forum do
resources :forums do
collection do
get 'sort'
post 'update_sort'
end
end
resources :topics do
member do
get 'lock'
get 'unlock'
get 'subscribe'
end
end
match 'unsubscribe' => 'topics#unsubscribe', :via => [:get]
resources :posts do
member do
get 'new_with_quote'
post 'report'
end
end
resources :reported_posts
match 'search' => 'search#search', :via => [:get]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment