config/routes.rb in field_test-0.2.4 vs config/routes.rb in field_test-0.3.0
- old
+ new
@@ -1,6 +1,7 @@
FieldTest::Engine.routes.draw do
resources :experiments, only: [:show]
resources :memberships, only: [:update]
- get "participants/:id", to: "participants#show", constraints: {id: /.+/}, as: :participant
+ get "participants/:id", to: "participants#show", constraints: {id: /.+/}, as: :legacy_participant
+ get "participants", to: "participants#show", as: :participant
root "experiments#index"
end