As pointed by Lawrence Pit, it is :conditions instead of :requirements
atd wrote:> 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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---