Sha256: 7b35412c5c6fa739ee383f35e18946627aee3818821464100a785e2bd5ba98ac
Contents?: true
Size: 1.34 KB
Versions: 8
Compression:
Stored size: 1.34 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', :as => :node_permalink end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems