Forum: Ruby Re: Rails - MethodNotAllowed Error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3d61a8dbbd64d0feed8698689cf15276?d=identicon&s=25 Jayce Meade (Guest)
on 2009-03-10 03:22
(Received via mailing list)
Sorry, my last was a bit garbled. Here's a better one:

ActionController::Routing::Routes.draw do |map|

# Home controller
map.home '', :controller => "Home"
map.root :home

# Administration controller
map.admin 'admin', :controller => "Administration"
map.users 'admin', :controller => "Administration", :action => :users
map.edit_user 'admin', :controller => "Administration", :action =>
:edit_user
map.add_user 'admin', :controller => "Administration", :action =>
:add_user
map.remove_user 'admin', :controller => "Administration", :action =>
:remove_user
map.content_edit 'admin', :controller => "Administration", :action =>
:content_edit
map.options 'admin', :controller => "Administration", :action =>
:options
map.system_eval 'admin', :controller => "Administration", :action =>
:system_eval

# Account controller
map.logout 'logout', :controller => "Account", :action => "logout"
map.login 'login', :controller => "Account", :action => "login"

# About controller
map.about 'about', :controller => "About"
map.faq 'faq', :controller => "About", :action => "faq"
map.getinvolved 'getinvolved', :controller => "About", :action =>
"getinvolved"
map.showcase 'showcase', :controller => "About", :action => "showcase"

# Blog controller
map.blog 'blog', :controller => "Blog"

# Forum controller
map.forum 'forum', :controller => "Forum"

# Contact controller
map.contact 'contact', :controller => "Contact"
end

--------------------------------------------------
From: "Jayce Meade" <azimuth-rubytalk@live.com>
Sent: Monday, March 09, 2009 7:12 PM
To: "Ryan Davis" <ryand-ruby@zenspider.com>
Subject: Re: Rails - MethodNotAllowed Error
This topic is locked and can not be replied to.