Re: Rails - MethodNotAllowed Error

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.” [email protected]
Sent: Monday, March 09, 2009 7:12 PM
To: “Ryan D.” [email protected]
Subject: Re: Rails - MethodNotAllowed Error

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs