Sha256: f275dd08f73b50871d7a95b3e54c4e76e7e9e971be328e7e231b83929c8bc380

Contents?: true

Size: 1.48 KB

Versions: 15

Compression:

Stored size: 1.48 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 :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

15 entries across 15 versions & 1 rubygems

Version Path
soapbox-0.2.14 config/routes.rb
soapbox-0.2.12 config/routes.rb
soapbox-0.2.11 config/routes.rb
soapbox-0.2.10 config/routes.rb
soapbox-0.2.9 config/routes.rb
soapbox-0.2.8 config/routes.rb
soapbox-0.2.7 config/routes.rb
soapbox-0.2.6 config/routes.rb
soapbox-0.2.5 config/routes.rb
soapbox-0.2.4 config/routes.rb
soapbox-0.2.3 config/routes.rb
soapbox-0.2.2 config/routes.rb
soapbox-0.2.1 config/routes.rb
soapbox-0.2.0 config/routes.rb
soapbox-0.1.7 config/routes.rb