summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2017-02-18 18:52:18 -0700
committermo khan <mo@mokhan.ca>2017-02-18 18:52:18 -0700
commit52ecd2612c71a57fc199f7ddc9bc81bfca204e84 (patch)
tree47b53089c31e577cedaefd2b44196515563e63fc /config
parent958def5a0d16c59807baf253aafb07ddc571fa73 (diff)
add texas method.
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 419512f..769c43c 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -4,7 +4,11 @@ Rails.application.routes.draw do
resources :registrations, only: [:new, :create]
resources :sets, only: [:update]
resources :workouts, only: [:index, :new, :create, :edit]
- resources :programs, only: [:show]
+ resources :programs, only: [:show] do
+ collection do
+ get :texas_method
+ end
+ end
resources :profiles, only: [:new, :create, :show, :edit, :update], constraints: { id: /[^\/]+/ }
resources :gyms, only: [:index, :show, :new, :create]
resources :charts, only: [:index]