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|