Forum: Ruby on Rails _session_id and form_for

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6663ba8c6b340de3046a0baff522bdde?d=identicon&s=25 tatyree (Guest)
on 2008-11-04 13:15
(Received via mailing list)
Hi,

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:

http://pastie.org/307103

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.
6663ba8c6b340de3046a0baff522bdde?d=identicon&s=25 tatyree (Guest)
on 2008-11-04 13: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.