Sha256: 62c7505af195cc2ddd4c2f11c4bcd8c68a8a64f7f061bacb8a3393a7f5260452
Contents?: true
Size: 1.38 KB
Versions: 45
Compression:
Stored size: 1.38 KB
Contents
module Noodall class Routes class << self def draw(app) app.routes.draw do root :to => "noodall/nodes#show", :permalink => ['home'] namespace 'noodall/admin', :as => 'noodall_admin', :path => 'admin' do resources :nodes do resources :nodes member do get :change_template get :move_up get :move_down post :preview end collection do get :tree end end resources :assets do collection do get :images get :videos get :documents post :plupload get :pending get :tags end member do get :add end end match 'assets/:asset_type/tags' => 'assets#tags', :as => :asset_tags match 'components/form/:type' => 'components#form' resources :groups end get "search" => "noodall/nodes#search", :as => :noodall_search get "sitemap" => "noodall/nodes#sitemap", :as => :noodall_sitemap get "*permalink.:format" => 'noodall/nodes#show' get "*permalink" => 'noodall/nodes#show', :as => :node_permalink end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems