Sha256: 7eefc7e05aaf262eddd036e6346e0051b000a4faaeb21eb8b511ad6b7e50e30e
Contents?: true
Size: 887 Bytes
Versions: 3
Compression:
Stored size: 887 Bytes
Contents
MongoidForums::Engine.routes.draw do namespace :admin do root :to => 'base#index' resources :forums resources :categories end root :to => "forums#index" # REDIRECT OLD ROUTES get '/forums/:forum_id/', :to => "redirect#forum" get '/forums/:forum_id/topics/:topic_id', :to => "redirect#topic" get '/posts/:post_id', :to => "redirect#posts" get '/subscriptions', :to => "redirect#subscriptions" # ME ROUTES get 'my_subscriptions', :to => "topics#my_subscriptions" get 'my_topics', :to => "topics#my_topics" get 'my_posts', :to => "topics#my_posts" # this moves the creation of topics into /forum_id/new resources :forums, :path => "/" do get 'new' post 'create' end resources :topics, :path => "/topics" do resources :posts member do get :subscribe get :unsubscribe end end resources :categories end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-forums-0.0.3 | config/routes.rb |
mongoid-forums-0.0.2 | config/routes.rb |
mongoid-forums-0.0.1 | config/routes.rb |