Admin.root doesnt work anymore (2.1.0)

Hello,

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”
end

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

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

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

Thanks!

On Tue, Jul 15, 2008 at 8:15 PM, Heinz S.
[email protected] wrote:

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’’


Gabriel L. [email protected]