20 lines
826 B
Ruby
20 lines
826 B
Ruby
ActionController::Routing::Routes.draw do |map|
|
|
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
|
|
|
|
|
|
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'
|
|
map.root :controller => :users, :action => :dashboard
|
|
end
|