Thank you all for replying...<br><br>Now the key question here is how do I tell the session to persist before delegating<br>to merb. It seems that the session gets persisted underneath the scene by rails and<br>my session state gets out of wack between rails and merb.
<br><br>Thus if in my rails controller I have:<br><br>def my_action<br> session[:fred] = "blee"<br> <br> # call merb<br> ....<br>end<br><br>The first time I hit my_action. Merb does not see fred....<br><br>
<br>Any ideas ??<br><br><br><br><div><span class="gmail_quote">On 1/14/07, <b class="gmail_sendername">Ezra Zygmuntowicz</b> <<a href="mailto:ez@engineyard.com">ez@engineyard.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>On Jan 12, 2007, at 8:30 AM, Fernand Galiana wrote:<br><br>> All,<br>><br>> I see this item on the merb-0.0.8 release notes<br>> Added rails session parasite mode.<br>><br>> I am assuming merbs can piggy back off the rails current session.
<br>> How does one achieve that ?<br>><br>> Thanks<br>> Fernand<br>><br><br>Hey Fernand-<br><br><br> Yes to piggyback on rails sessions, you need to point merb's db<br>connection at your rails database session table. Then in
merb.yml you<br>need to set<br>:sql_session: true<br><br> Then when you redirect to merb from rails you append the session id<br>to the query string like :<br><br> /merb/action?_session_id=asdkljfhaklsdfnaddanlafldlkdf
<br><br> Then you will be able to use the session has on merb and it will<br>have the contents from rails.<br><br><br>-- Ezra Zygmuntowicz<br>-- Lead Rails Evangelist<br>-- <a href="mailto:ez@engineyard.com">ez@engineyard.com
</a><br>-- Engine Yard, Serious Rails Hosting<br>-- (866) 518-YARD (9273)<br><br><br></blockquote></div><br>