summaryrefslogtreecommitdiff
path: root/billing/config/routes.rb
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-06-10 10:25:37 -0700
committerAzul <azul@leap.se>2013-07-17 10:47:14 +0200
commit87dc4f9d11af4610f534d57d5e51fabca9bb328a (patch)
treeafe5f40cc57fba1b54b539c3e8bc540bd0716241 /billing/config/routes.rb
parentc4379dcfdc8b27fae15eea5c4ba15b8906e3bb76 (diff)
Back to singular-customer controller, in hopes that would help some confusions.
Diffstat (limited to 'billing/config/routes.rb')
-rw-r--r--billing/config/routes.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/billing/config/routes.rb b/billing/config/routes.rb
index 9b29aef..1bb32df 100644
--- a/billing/config/routes.rb
+++ b/billing/config/routes.rb
@@ -4,10 +4,11 @@ Rails.application.routes.draw do
match 'payments/confirm' => 'payments#confirm', :as => :confirm_payment
resources :payments, :only => [:index]
- resources :customers, :only => [:new, :edit, :show]
+ resources :customer, :only => [:new, :edit]
resources :credit_card_info, :only => [:edit]
- match 'customer/confirm' => 'customer#confirm', :as => :confirm_customer
+ match 'customer/confirm/' => 'customer#confirm', :as => :confirm_customer
+ match 'customer/show/:id' => 'customer#show', :as => :show_customer
match 'credit_card_info/confirm' => 'credit_card_info#confirm', :as => :confirm_credit_card_info
resources :subscriptions, :only => [:new, :create, :index, :show, :update, :destroy]