I''m running off of the same database and didn''t have a problem
grabbing the session_id from the cookies and then loading the session
data with the ActiveRecord sessions. However, after rethinking the
file upload scenario I''m going to have a dedicated Mongrel running
for file uploads and probably punt on using Merb for now.
The large file upload thread on the Mongrel list was seminal. You
could write a book from that thread.
Erik
On Dec 1, 2006, at 11:05 PM, merb-devel at rubyforge.org wrote:
>> I am considering using merb to process file uploads. For the most
>> part I''m going to keep it lean and mean. I would however like
to
>> access my active_record_session from my Rails app. Is this built into
>> merb yet?
>
>> Or is it OK to just add require ''action_controller/session/
>> active_record_store'' to merb_init.rb and then create my own
session
>> object (CGI::Session::ActiveRecordStore::Session.find_by_session_id
>> (cookies[''_session_id'']))?
>
>> Thanks a lot.
>>
>> Erik
>
> Hey Eric
>
> What do you need form the sessions in the rails app? You can''t
just
> require the sessions stuff fomr rails it won''t work. Merb as its
own
> DRb sessions store. But I have apps that pass off the sess_id from
> the rails app as a query string to the merb request. Like this:
>
> http://mymerbapp.com/whatever/foo?
> sess_id=lkj3lkj4k1234bk32b4ljk1b324b1324k
>
>
> But maybe you can explain exactly what you need to accomplish. If
> you can skethc out for me what you are trying to do then i may have a
> better suggestion.
>
> Cheers-
>
> -- Ezra Zygmuntowicz
> -- Lead Rails Evangelist
> -- ez at engineyard.com
> -- Engine Yard, Serious Rails Hosting
> -- (866) 518-YARD (9273)
>
>
> _______________________________________________
> Merb-devel mailing list
> Merb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/merb-devel