Sha256: 7f059ebc5acb723e374c87cbfd20c9f42126fef3f940b47e3768d297efa07e69

Contents?: true

Size: 1.07 KB

Versions: 7

Compression:

Stored size: 1.07 KB

Contents

module ActionDispatch::Routing
  class Mapper
    def wheels_resources
      resources :access_control_entries
      resources :app_configs
      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 '/admin' => "sitemaps#index"
      match "change_password" => "users#edit"
      match "verify_password" => "users#verify", :format=>:json
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wheels-0.1.11 lib/wheels/routes.rb
wheels-0.1.8 lib/wheels/routes.rb
wheels-0.1.7 lib/wheels/routes.rb
wheels-0.1.6 lib/wheels/routes.rb
wheels-0.1.5 lib/wheels/routes.rb
wheels-0.1.4 lib/wheels/routes.rb
wheels-0.1.3 lib/wheels/routes.rb