Sha256: f7b01a05bec9a8695c9ad7fdbb05a742ca9c2f2c1258356a99682330ac2c9c2d

Contents?: true

Size: 751 Bytes

Versions: 8

Compression:

Stored size: 751 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 }
    forum.resources :post_attachments, :only => [:show]
  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'
  map.add_comment "/pages/:page_id/posts/new.:format", :controller => 'posts', :action => 'new'

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
radiant-forum-extension-3.0.0.rc6 config/routes.rb
radiant-forum-extension-3.0.0.rc4 config/routes.rb
radiant-forum-extension-3.0.0.rc3 config/routes.rb
radiant-forum-extension-2.1.6 config/routes.rb
radiant-forum-extension-2.1.4 config/routes.rb
radiant-forum-extension-2.1.3 config/routes.rb
radiant-forum-extension-2.1.2 config/routes.rb
radiant-forum-extension-2.1.1 config/routes.rb