Why MethodNotAllowed all of a sudden?

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 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.

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