From 99fe498041d31f9a477215f215977e557c6a2e4c Mon Sep 17 00:00:00 2001 From: Lee Lawlor Date: Thu, 3 Apr 2014 15:47:33 -0400 Subject: [PATCH] fix routes --- config/routes.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index ad2decf..b9d56b0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -57,7 +57,8 @@ Thingspeak::Application.routes.draw do # specific feeds get 'channels/:channel_id/feed(s)(.:format)' => 'feed#index' - get 'channels/:channel_id/field(s)/:field_id(.:format)' => 'feed#index' + get 'channels/:channel_id/field/:field_id(.:format)' => 'feed#index' # not sure why this doesn't work with (s) + get 'channels/:channel_id/fields/:field_id(.:format)' => 'feed#index' # not sure why this doesn't work with (s) get 'channels/:channel_id/field/:field_id/:id(.:format)' => 'feed#show' # not sure why this doesn't work with (s) get 'channels/:channel_id/fields/:field_id/:id(.:format)' => 'feed#show' # not sure why this doesn't work with (s) get 'channels/:channel_id/feed(s)/last_average(.:format)' => 'feed#last_average'