Sha256: 0b7b2d2e21a0d9b10386164010a8c64b8fa68466acae47c6901590ad9883908f
Contents?: true
Size: 654 Bytes
Versions: 4
Compression:
Stored size: 654 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, :posts] forum.resources :topics, :has_many => [:posts] forum.resources :posts, :collection => {:search => :get} forum.resources :pages, :has_many => [:posts], :has_one => [:topic] 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
4 entries across 4 versions & 1 rubygems