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
%ul
%li= link_to "Meine Aufgaben", user_tasks_path
%li= link_to "Alle Aufgaben", :action => "index"
%li= link_to "Erledigt Aufgaben (Archiv)", :action => "archive"
%li= link_to "Alle Aufgaben", tasks_path
%li= link_to "Erledigt Aufgaben (Archiv)", archive_tasks_path
%li
Gruppenaufgaben
%ul
- 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
map.resources :invites, :only => [:new, :create]
map.resources :tasks,
:collection => {:user => :get}
:collection => {:user => :get, :archive => :get}
map.resources :messages, :only => [:index, :show, :new, :create],
:member => { :reply => :get, :user => :get, :group => :get }
map.namespace :foodcoop do |foodcoop|