# Admin.root doesnt work anymore (2.1.0)

**URL:** <https://www.ruby-forum.com/t/admin-root-doesnt-work-anymore-2-1-0/143159>\
**Category:** Rails\
**Created:** [July 15, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/admin-root-doesnt-work-anymore-2-1-0/143159 "2008-07-15T20:15:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cojones](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@cojones](https://www.ruby-forum.com/u/cojones)\
**Post date:** [July 15, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/admin-root-doesnt-work-anymore-2-1-0/143159/1 "2008-07-15T20:15:38Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![cojones](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@cojones](https://www.ruby-forum.com/u/cojones)\
**Post date:** [July 16, 2008, 12:35am UTC](https://www.ruby-forum.com/t/admin-root-doesnt-work-anymore-2-1-0/143159/2 "2008-07-16T00:35:14Z")

</div>

On Tue, Jul 15, 2008 at 8:15 PM, Heinz S.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
