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 127.0.0.1 at 2008-03-27
17:37:50) [POST]
Session ID:
BAh7CDoMY3NyZl9pZCIlZjBlZjA5MDhjZWY4OTE2OWNjYmFkY2U1NDBlYTU1%0AZmIiLk9wZW5JRDo6Q29uc3VtZXI6Omxhc3RfcmVxdWVzdGVkX2VuZHBvaW50%0AMCIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFz
%0AaHsABjoKQHVzZWR7AA%3D%3D–ab2d9c6c13da4948dcc18c0ec88492a84929ba05
Parameters: {“commit”=>“Sign in”,
“authenticity_token”=>“91cc79690b582c5cd2cbf40937108fa1c6099c30”,
“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