Fixed paths in task-menu.

This commit is contained in:
Benjamin Meichsner 2010-06-01 16:18:20 +02:00
parent b71e809f34
commit 74407a5912
2 changed files with 4 additions and 4 deletions

View file

@ -9,11 +9,11 @@
Seiten Seiten
%ul %ul
%li= link_to "Meine Aufgaben", user_tasks_path %li= link_to "Meine Aufgaben", user_tasks_path
%li= link_to "Alle Aufgaben", :action => "index" %li= link_to "Alle Aufgaben", tasks_path
%li= link_to "Erledigt Aufgaben (Archiv)", :action => "archive" %li= link_to "Erledigt Aufgaben (Archiv)", archive_tasks_path
%li %li
Gruppenaufgaben Gruppenaufgaben
%ul %ul
- for group in Workgroup.all - for group in Workgroup.all
%li= link_to group.name, :action => "workgroup", :id => group %li= link_to group.name, :controller => 'tasks', :action => "workgroup", :id => group

View file

@ -28,7 +28,7 @@ ActionController::Routing::Routes.draw do |map|
# Foodcoop orga # Foodcoop orga
map.resources :invites, :only => [:new, :create] map.resources :invites, :only => [:new, :create]
map.resources :tasks, map.resources :tasks,
:collection => {:user => :get} :collection => {:user => :get, :archive => :get}
map.resources :messages, :only => [:index, :show, :new, :create], map.resources :messages, :only => [:index, :show, :new, :create],
:member => { :reply => :get, :user => :get, :group => :get } :member => { :reply => :get, :user => :get, :group => :get }
map.namespace :foodcoop do |foodcoop| map.namespace :foodcoop do |foodcoop|