Forum: Ruby on Rails _session_id and form_for

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
tatyree (Guest)
on 2008-11-04 14:15
(Received via mailing list)

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.
tatyree (Guest)
on 2008-11-04 14:35
(Received via mailing list)
Found a partial solution, that I've added to pastie.  Still having
trouble getting hold of the session ID from the post, however.
This topic is locked and can not be replied to.