In the Ruby on Rails 3 tutorial, the code uses:
match '/signup', :to => 'users#new' match '/signin', :to => 'sessions#new' match '/signout', :to => 'sessions#destroy' match '/contact', :to => 'pages#contact' match '/about', :to => 'pages#about' match '/help', :to => 'pages#help'
but not
get '/signup', :to => 'users#new' get '/signin', :to => 'sessions#new' get '/signout', :to => 'sessions#destroy' get '/contact', :to => 'pages#contact' get '/about', :to => 'pages#about' get '/help', :to => 'pages#help'
although all routes require only an HTTP GET verb. Why not use get (or :via => [:get] on match ) and limit the effect of routing as practical?
George Shaw Dec 23 '11 at 18:31 2011-12-23 18:31
source share