From bdb177dfa6bc42181816ff12c521d21f537c7099 Mon Sep 17 00:00:00 2001 From: benni Date: Wed, 11 May 2011 14:21:06 +0200 Subject: [PATCH] Fixed bug in routes.rb --- config/routes.rb | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index ccc7e8ce..532efbf9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -115,39 +115,39 @@ Foodsoft::Application.routes.draw do post :sync end end + end - resources :article_categories + resources :article_categories - ########### Finance + ########### Finance - namespace :finance do - root :to => 'balancing#index' - match 'balancing/list' => 'balancing#list', :as => 'balancing' + namespace :finance do + root :to => 'balancing#index' + match 'balancing/list' => 'balancing#list', :as => 'balancing' - resources :invoices + resources :invoices - resources :transactions do - collection do - get :new_collection - post :create_collection - end + resources :transactions do + collection do + get :new_collection + post :create_collection end end + end - ########### Administration + ########### Administration - namespace :admin do - root :to => 'base#index' + namespace :admin do + root :to => 'base#index' - resources :users + resources :users - resources :workgroups do - get :memberships, :on => :member - end + resources :workgroups do + get :memberships, :on => :member + end - resources :ordergroups do - get :memberships, :on => :member - end + resources :ordergroups do + get :memberships, :on => :member end end