Sha256: 35adab59cc2798dd6358fb16f27ea6f67b153d9f949d2dd5bc3eed33774e1dc3
Contents?: true
Size: 1.69 KB
Versions: 4
Compression:
Stored size: 1.69 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 :forms, :has_many => :form_responses resources :fields do collection do get :form end end match 'components/form/:type' => 'components#form' resources :groups end resources :forms, :has_many => :responses 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
noodall-ui-0.0.13 | lib/noodall/routes.rb |
noodall-ui-0.0.12 | lib/noodall/routes.rb |
noodall-ui-0.0.11 | lib/noodall/routes.rb |
noodall-ui-0.0.10 | lib/noodall/routes.rb |