Re: Rails - MethodNotAllowed Error


#1

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 M.” removed_email_address@domain.invalid
Sent: Monday, March 09, 2009 7:12 PM
To: “Ryan D.” removed_email_address@domain.invalid
Subject: Re: Rails - MethodNotAllowed Error