allow plural names in routes

This commit is contained in:
ioBridge 2011-04-05 18:25:41 -04:00
parent 12917fd868
commit 6ed3010105

View File

@ -14,8 +14,10 @@ Thingspeak::Application.routes.draw do
resources :users
# specific feeds
match 'channels/:channel_id/field/:field_id(.:format)' => 'feed#index'
match 'channels/:channel_id/feed/entry/:id(.:format)' => 'feed#show'
match 'channels/:channel_id/feed(s)(.:format)' => 'feed#index'
match 'channels/:channel_id/field(s)/:field_id(.:format)' => 'feed#index'
match 'channels/:channel_id/field(s)/:field_id/:id(.:format)' => 'feed#show'
match 'channels/:channel_id/feed(s)/entry/:id(.:format)' => 'feed#show'
# import
match 'channels/:channel_id/import' => 'channels#import', :as => 'channel_import'