Sha256: 505982b7b8b4e3e46f0082c0f9610a0e76d979fcab577e97bab3e0393997d1d5

Contents?: true

Size: 1.5 KB

Versions: 9

Compression:

Stored size: 1.5 KB

Contents

Rails.application.routes.draw do |map|
  
  devise_for :members
  devise_for :users, :controllers => { :sessions => "devise/sessions" }

  # Resources
  resources :pages, :only => [:index, :show]

  namespace :admin do
    # Admin Resources
    resources :menus do
      resources :menu_items
    end  
    resources :members
    resources :gallery_images # for attachments views
    resources :galleries do      
      resources :gallery_images do
        get "image"
      end
    end
    resources :groups
    resources :analytics
    resources :versions
    resources :attachments
    resources :contents
    resources :comments
    resources :categories
    resources :files
    resources :plugins do
      collection do
        get  :order
      end
    end
    resources :redirects
    resources :settings
    resources :images
    resources :pages do
      get :link_list, :on => :collection
      collection do
        get  :tree
      end
    end
    resources :users
    root :to => "pages#root"
    # save list and tree order
    post "/save_order/:model" => "admin#save_order", :as => "save_order"
    post "/save_tree/:model"  => "admin#save_tree",  :as => "save_tree"
    get "/wysiwyg/:model/:id/:field"  => "admin#wysiwyg",  :as => "wysiwyg"
  end  

  post "/email_form"  => "application#email_form",  :as => "email_form"
  
  get "sitemap.xml" => "sitemap#sitemap"
  
  root :to => "pages#show"
  
  get "*path" => "redirects#show"
  
  # match "*path" => "pages#show"
  
  # match "*path" => "static#error_404"
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
soapbox-0.3.1 config/routes.rb
soapbox-0.3.0 config/routes.rb
soapbox-0.2.24 config/routes.rb
soapbox-0.2.23 config/routes.rb
soapbox-0.2.21 config/routes.rb
soapbox-0.2.20 config/routes.rb
soapbox-0.2.18 config/routes.rb
soapbox-0.2.16 config/routes.rb
soapbox-0.2.15 config/routes.rb