# Why MethodNotAllowed all of a sudden?

**URL:** <https://www.ruby-forum.com/t/why-methodnotallowed-all-of-a-sudden/143503>\
**Category:** Rails\
**Created:** [July 19, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/why-methodnotallowed-all-of-a-sudden/143503 "2008-07-19T16:05:33Z")\
**Posts on this page:** 1\
**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 19, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/why-methodnotallowed-all-of-a-sudden/143503/1 "2008-07-19T16:05:33Z")

</div>

I’m using shortcuts for login, logout etc. in routes.rb, for example:  
map.login ‘login’, :controller =\> ‘session’, :action =\> ‘new’

When I access [http://localhost:3000/login](http://localhost:3000/login) I get following exception:  
ActionController::MethodNotAllowed

Only get, head, post, put, and delete requests are allowed.

Does anyone know what’s wrong there? I’m using 2.1.0 btw.
