Sha256: a6609ed1dd81b614cacc68ad9f5e69673e2d830464d8e4c0ad68b3006ead4d47

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 Bytes

Contents

SimpleForum::Engine.routes.draw 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_forum-0.0.2 config/routes.rb