X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=config%2Froutes.rb;fp=config%2Froutes.rb;h=b3c1a9b592c33715f8d3418e36a68ecc1aac3195;hp=e159c8a242e2cd32fca5f02d27b6f1546aa47590;hb=ecf9b1a88198581aa2bbede0486ca93116d59d73;hpb=6253955ab9186542ebc35c1e9579942331cd5e69 diff --git a/config/routes.rb b/config/routes.rb index e159c8a2..b3c1a9b5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -548,9 +548,9 @@ Pettanr::Application.routes.draw do # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show' # match 'pictures/:subdir/:id(.:format)/' => 'pictures#show' #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll' - match 'top/(:action)', :controller => 'top' - match 'home/(:action)', :controller => 'home' - match 'system/(:action)', :controller => 'system' + match 'top/(:action)', :controller => 'top', via: [:get] + match 'home/(:action)', :controller => 'home', via: [:get] + match 'system/(:action)', :controller => 'system', via: [:get, :post] #match 'authors/(:action(/:id))', :controller => 'authors' # Sample of named route: @@ -601,5 +601,5 @@ Pettanr::Application.routes.draw do # This is a legacy wild controller route that's not recommended for RESTful applications. # Note: This route will make all actions in every controller accessible via GET requests. - match ':controller(/:action(/:id(.:format)))' + match ':controller(/:action(/:id(.:format)))', via: [:get, :post] end