summaryrefslogtreecommitdiff
path: root/engines/billing/config/routes.rb
diff options
context:
space:
mode:
authorclaucece <soficeli0@gmail.com>2015-10-05 21:57:05 -0500
committerclaucece <soficeli0@gmail.com>2015-10-05 23:05:48 -0500
commit775835dc1b9a8f79cdd53d450fd6cd35f131b4a6 (patch)
tree62956df18378b83ae7a59a4bf257340be7970a7e /engines/billing/config/routes.rb
parent2d4765030451934aaba643f7131eb6f8d6442b28 (diff)
add test to payments and subscriptions
Diffstat (limited to 'engines/billing/config/routes.rb')
-rw-r--r--engines/billing/config/routes.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/billing/config/routes.rb b/engines/billing/config/routes.rb
index 229641f..357c55b 100644
--- a/engines/billing/config/routes.rb
+++ b/engines/billing/config/routes.rb
@@ -1,10 +1,13 @@
Rails.application.routes.draw do
scope "(:locale)", :locale => CommonLanguages.match_available do
- match 'payments/new' => 'payments#new', :as => :new_payment
- match 'payments/confirm' => 'payments#confirm', :as => :confirm_payment
+
+ get 'payments/new' => 'payments#new', :as => :new_payment
+ post 'payments/confirm' => 'payments#confirm', :as => :confirm_payment
+ # match 'payments/new' => 'payments#new', :as => :new_payment
+ # match 'payments/confirm' => 'payments#confirm', :as => :confirm_payment
#resources :users do
- # resources :payments, :only => [:index]
+ # resources :payments, :only => [:new, :confirm]
# resources :subscriptions, :only => [:index, :destroy]
#end
resources :subscriptions, :only => [:index, :show] do