Sha256: f3af619c05a24e95296e47f5168f58e207f89d401cde356b2dfd8e7fce310c4b
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
#SimpleForum::Engine.routes.draw do # # root :to => "simple_forum/forums#index" # match '/asd2' => "simple_forum/forums#index", :as => :aaaa # # # - Make sure our route names are namespaced under regulate_ # scope 'forum', :module => :simple_forum, :as => :simple_forum do # match '/asd2' => "simple_forum/forums#index", :as => :bbbb # # resources :forums, :only => [:index, :show] do # resources :topics, :only => [:show], :controller => 'simple_forum/topics' do # resources :posts, :only => [:show, :new, :create], :controller => 'simple_forum/posts' do # end # end # end # end # # #end # Rails.application.routes.draw do scope SimpleForum.route_namespace, :module => :simple_forum, :as => :simple_forum do root :to => 'forums#index', :via => :get resources :forums, :only => [:index, :show], :path => 'f' do resources :topics, :only => [:index, :show, :new, :create], :path => 't' do member do post :open post :close end resources :posts, :except => [:destroy], :path => 'p' do delete :delete, :on => :member get :preview, :on => :collection end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_forum-0.0.1 | config/routes.rb |