Rails 3.0.5 did nothing wrong.
The correct code for this:
namespace :products do
resources :comments do
member do
get :like
end
end
end
Using a `get` without a `member` block leads to the misbehaviour as seen here, and it's also non-standard.When defining additional actions for a resource one should always use a `member` block for actions that work on a single object or `collection` for those actions that work on many.