Sha256: 46b6178a8976ea3ef98e5f6acc36a7cb020540d855e4f224d6f68ec01bf1d9c0
Contents?: true
Size: 598 Bytes
Versions: 2
Compression:
Stored size: 598 Bytes
Contents
ActionController::Routing::Routes.draw do |map| map.with_options :path_prefix => '/forum' do |forum| forum.resources :forums, :only => [:index, :show], :has_many => [:topics] forum.resources :topics, :only => [:index, :show], :has_many => [:posts] forum.resources :posts, :member => { :remove => :get } end map.namespace :admin, :member => { :remove => :get }, :path_prefix => 'admin/forum' do |admin| admin.resources :forums admin.resources :topics admin.resources :posts end map.forum_home "/forum.:format", :controller => 'topics', :action => 'index' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
radiant-forum-extension-2.0.1 | config/routes.rb |
radiant-forum-extension-2.0.0 | config/routes.rb |