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>&nbsp;&nbsp; session[:fred] = &quot;blee&quot;<br>&nbsp; <br>&nbsp;&nbsp; # call merb<br>&nbsp;&nbsp; ....<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> &lt;<a href="mailto:ez@engineyard.com">ez@engineyard.com</a>&gt; 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>&gt; All,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;I see this item on the merb-0.0.8 release notes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Added rails session parasite mode.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I am assuming merbs can piggy back off the rails current session.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; How does one achieve that ?<br>&gt;<br>&gt; Thanks<br>&gt; Fernand<br>&gt;<br><br>Hey Fernand-<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yes to piggyback on rails sessions, you need to point merb&#39;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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Then when you redirect to merb from rails you append the session id<br>to the query string like :<br><br>&nbsp;&nbsp;/merb/action?_session_id=asdkljfhaklsdfnaddanlafldlkdf
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>