collab/config/routes.rb

20 lines
826 B
Ruby
Raw Normal View History

2010-03-04 06:22:45 +00:00
ActionController::Routing::Routes.draw do |map|
2010-03-05 06:48:00 +00:00
Clearance::Routes.draw(map)
map.user '/users/:id', :controller => :users, :action => :show
map.user_inline_edit '/users/:id/inline', :controller => :users, :action => :inline, :conditions => { :method => :post }
#map.dashboard '/dashboard', :controller => :users, :action => :dashboard
2010-03-04 06:22:45 +00:00
map.resources :projects do |projects|
projects.resources :tasks
end
# Install the default routes as the lowest priority.
# Note: These default routes make all actions in every controller accessible via GET requests. You should
# consider removing or commenting them out if you're using named routes and resources.
#map.connect ':controller/:action/:id'
#map.connect ':controller/:action/:id.:format'
2010-03-05 06:48:00 +00:00
map.root :controller => :users, :action => :dashboard
2010-03-04 06:22:45 +00:00
end