admin.root doesnt work anymore (2.1.0)


I'm just trying to set up a admin panel like always so I added this to
my routes.rb:
  map.namespace :admin do |admin|
    admin.root :controller => "products"

But 2.1.0 doesnt seem to like it. It throws an exception:

Only get, head, post, put, and delete requests are allowed.

Does anyone have a clue how I'm supposed to write it?


I have similar code thats work very well.

First, do you have restarted your server ?
After that, what are the uri you have requested ?
and what is the output of ``rake routes''