On Tue, Jul 15, 2008 at 8:15 PM, Heinz Strunk
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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?
>
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 Laskar <bibi.skuk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---