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