This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/config/routes.rb

92 lines
2.3 KiB
Ruby
Raw Normal View History

2010-03-08 08:04:05 +00:00
R4::Application.routes.draw do |map|
2009-06-01 02:54:16 +00:00
2010-03-08 08:04:05 +00:00
resources :announcements
2010-03-08 08:04:05 +00:00
namespace :admin do
resources :items do
member do
put :up
put :down
end
end
resources :pages
resources :links
resources :components
resources :layouts
resources :snippets
resources :assets
2010-03-15 09:35:01 +00:00
resources :user_attributes
2010-03-08 08:04:05 +00:00
end
namespace :panel do
resources :users
resources :announcements
end
devise_for :users
# match 'users' => '#index', :as => :devise_for
match '/' => 'pages#index'
match '*page_name' => 'pages#show', :as => :page
2010-03-08 08:04:05 +00:00
2010-03-08 08:04:05 +00:00
# The priority is based upon order of creation:
# first created -> highest priority.
2009-05-07 16:53:18 +00:00
# Sample of regular route:
2010-03-08 08:04:05 +00:00
# match 'products/:id' => 'catalog#view'
2009-05-07 16:53:18 +00:00
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
2010-03-08 08:04:05 +00:00
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
2009-05-07 16:53:18 +00:00
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
2010-03-08 08:04:05 +00:00
# resources :products
2009-05-07 16:53:18 +00:00
# Sample resource route with options:
2010-03-08 08:04:05 +00:00
# resources :products do
# member do
# get :short
# post :toggle
# end
#
# collection do
# get :sold
# end
# end
2009-05-07 16:53:18 +00:00
# Sample resource route with sub-resources:
2010-03-08 08:04:05 +00:00
# resources :products do
# resources :comments, :sales
# resource :seller
# end
2009-05-07 16:53:18 +00:00
# Sample resource route with more complex sub-resources
2010-03-08 08:04:05 +00:00
# resources :products do
# resources :comments
# resources :sales do
# get :recent, :on => :collection
# end
2009-05-07 16:53:18 +00:00
# end
# Sample resource route within a namespace:
2010-03-08 08:04:05 +00:00
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
2009-05-07 16:53:18 +00:00
# end
2010-03-08 08:04:05 +00:00
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
root :to => "pages#index"
2009-05-07 16:53:18 +00:00
# See how all your routes lay out with "rake routes"
2010-03-08 08:04:05 +00:00
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
# match ':controller(/:action(/:id(.:format)))'
2009-05-07 16:53:18 +00:00
end