search for: find_sess

Displaying 3 results from an estimated 3 matches for "find_sess".

Did you mean: find_sent
2008 Oct 22
2
setting session id for first visit
I am logging web visits with a before_filter on the application controller. The issue I''m having is that the initial visit does not return a session id. I''m using the SqlSessionStore and the function MysqlSession.find_session(session.session_id) to retrieve the session id. If it doesn''t exist I use a -1. So looking in my visits table the initial visit always has -1 for the session id and the rest of the visits contain a valid session id for that visitor. I tried putting the logging of visits in the after fi...
2006 May 17
8
Html Email Problem
.... but mail is going with html code Exapmle: <html border="2"> <tr><td></td></tr></html> code in the confirm .html In the mail i got total code same format what is the wrong I am also sending the total code in the controller also. order= Order.find_session(params[''ses_value'']) order = Order.find_by_name("admin") email = OrderMailer.create_confirm(order) email.set_content_type("text/html") render(:text => "<pre>" + email.encoded + "</pre>") OrderMailer.deliver_confirm(order)...
2006 Oct 15
1
mongrel_send_file gem plugin
...ig/mongrel_send_file.conf == Note I wrote this for a couple Rails apps that use the SqlSessionStore plugin [1]. So, it''s very opinionated about how it gets the info from the session. This app should work with any app that runs on Mongrel (not just rails), just monkey patch the SendFile#find_session method. Submit suggestions as patches if you have them too. [1] - http://railsexpress.de/blog/articles/2006/09/15/sqlsessionstore-now-available-as-a-plugin -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.com