Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/wheels/routes.rb

Instance Method Summary collapse

Instance Method Details

#wheels_resourcesObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/wheels/routes.rb', line 3

def wheels_resources
  resources :access_control_entries do
    collection do
      put :sort
    end
  end

  resources :app_configs do
    member do
      get :css
    end
  end

  resources :blogs, :path=>"blog"
  resources :external_links
  resources :feedbacks, :path=>"feedback", :only=>[:new, :index, :create]

  resources :forums do
    resources :discussions do
      resources :forum_messages
    end
  end

  resources :galleries do
    resources :images
  end

  resources :layouts
  resources :menus
  resources :pages do
    resources :attachments
    resources :children, :controller=>"pages", :as => "children"
  end

  resource  :profile
  resources :sitemaps

  devise_for :users
  resources :users do
    resources :blogs, :path=>"blog"
    resources :galleries
    resource  :profile
    member do
      get :verify
    end
  end

  match '/css' => 'app_configs#css'
  match '/admin' => "sitemaps#index"
  match "my_account" => "users#edit"
  match "change_password" => "users#change_password"
  match "verify_password" => "users#verify", :format=>:json
  match '/:level1(/:level2(/:level3(/:level4)))' =>'pages#show'

end