Sha256: 6b9c4543910d4b5694c68264e3a749fdbf359cde00da2231888ebd29dff8c711

Contents?: true

Size: 421 Bytes

Versions: 17

Compression:

Stored size: 421 Bytes

Contents

Rails.application.routes.draw do
  namespace :admin do
    resources :roles, :except => :show do
      resources :sections, :controller => :role_sections, :only => :none do
        collection do
          post :create
          post :create_rule
        end

        member do
          put :rule_on
          put :rule_off

          delete :destroy
          delete :destroy_rule
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
the_role-2.1.0 config/routes.rb
the_role-2.0.4 config/routes.rb
the_role-2.0.3 config/routes.rb
the_role-2.0.2 config/routes.rb
the_role-2.0.1 config/routes.rb
the_role-2.0.0 config/routes.rb
the_role-1.7.0 config/routes.rb
the_role-1.6.9 config/routes.rb
the_role-1.6.8 config/routes.rb
the_role-1.6.7 config/routes.rb
the_role-1.6.6 config/routes.rb
the_role-1.6.5 config/routes.rb
the_role-1.6.4 config/routes.rb
the_role-1.6.3 config/routes.rb
the_role-1.6.2 config/routes.rb
the_role-1.6.1 config/routes.rb
the_role-1.6.0 config/routes.rb