From 74407a59127a9ae4de6a0b8f735fd2bc93845f3c Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Tue, 1 Jun 2010 16:18:20 +0200 Subject: [PATCH] Fixed paths in task-menu. --- app/views/tasks/_nav.haml | 6 +++--- config/routes.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/tasks/_nav.haml b/app/views/tasks/_nav.haml index bed59970..24d8d263 100644 --- a/app/views/tasks/_nav.haml +++ b/app/views/tasks/_nav.haml @@ -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 \ No newline at end of file + %li= link_to group.name, :controller => 'tasks', :action => "workgroup", :id => group \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 20de0c3c..72605584 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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|