Sha256: 2db45e6213a1780553f6fc8367bb474c8b1f77868d172848a3638e165dc3518a

Contents?: true

Size: 779 Bytes

Versions: 27

Compression:

Stored size: 779 Bytes

Contents

require 'saucy/routing_extensions'

Rails.application.routes.draw do
  resources :accounts, :only => [:index, :edit, :update, :destroy]

  through :accounts do
    resource  :billing
    resource  :plan
    resources :projects
    resources :memberships, :only => [:index, :edit, :update, :destroy]
    resources :invitations, :only => [:show, :update, :new, :create]
  end

  resources :plans, :only => [:index] do
    resources :accounts, :only => [:new, :create]
  end

  resource :profile, :only => [:edit, :update]
  
  namespace :admin do
    resources :accounts, :only => [:index, :show] do
      get :search, :on => :collection
    end
    resources :users, :only => [:index, :show] do
      get :search, :on => :collection
    end
    match "/" => "base#show"
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
saucy-0.14.3 config/routes.rb
saucy-0.10.10 config/routes.rb
saucy-0.14.2 config/routes.rb
saucy-0.14.1 config/routes.rb
saucy-0.14.0 config/routes.rb
saucy-0.13.3 config/routes.rb
saucy-0.13.2 config/routes.rb
saucy-0.10.9 config/routes.rb
saucy-0.10.8 config/routes.rb
saucy-0.13.1 config/routes.rb
saucy-0.13.0 config/routes.rb
saucy-0.12.5 config/routes.rb
saucy-0.12.4 config/routes.rb
saucy-0.12.3 config/routes.rb
saucy-0.12.2 config/routes.rb
saucy-0.12.1 config/routes.rb
saucy-0.12.0 config/routes.rb
saucy-0.11.5 config/routes.rb
saucy-0.11.3 config/routes.rb
saucy-0.11.2 config/routes.rb