知识点 collection route and member route

For example:

resources :photos do
member do
get :preview
end
end
versus

resources :photos do
collection do
get :search
end
end

http://stackoverflow.com/questions/3028653/difference-between-collection-route-and-member-route-in-ruby-on-rails

Comments

comments powered by Disqus