Route :requirements not working?

I have the following route:

map.open_id_complete ‘session’, { :open_id_complete => true,
:requirements => { :method
=> :get },
:controller => “sessions”,
:action => “create” }

map.resource :session

but when doing a POST, open_id_complete is triggered despite method is
not get!!

Processing SessionsController#create (for at 2008-03-27
17:37:50) [POST]
Session ID:
Parameters: {“commit”=>“Sign in”,
“action”=>“create”, “controller”=>“sessions”, “openid_identifier”=>"",
“open_id_complete”=>true, “password”=>"", “login”=>""}

any ideas?

As pointed by Lawrence P., it is :conditions instead of :requirements

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