_session_id and form_for


I’ve got a mobile enabled app that needs to be able to pass
_session_id for certain phones/operators that cannot/will not handle
cookies. I’ve outlined the problem here and given the code here:


Basically, I cannot get form_for to pick up the _session_id on cookie-
less sessions unless I override it. When I do override form_for to
have it pass _session_id as a hidden param, the default_url_options
override then starts working and adding the session_id to the form
action url. This then breaks the controller when the form is
submitted (‘Only get, put, and delete requests are allowed.’).

Any thoughts, insights or suggestions would be appreciated.

Found a partial solution, that I’ve added to pastie. Still having
trouble getting hold of the session ID from the post, however.