search for: secure_with

Displaying 2 results from an estimated 2 matches for "secure_with".

Did you mean: secure_path
2008 Dec 16
3
ApplicationProperties
...which users are developers for my app and then grant special permissions to them ... I tried creating something like this: class ApplicationProperties < ActiveRecord::Base def facebook_session @facebook_session ||= returning Facebooker::Session.create do |session| session.secure_with!(session_key,User.find(:first).facebook_id,1.hour.from_now) end end end but that doesn''t seem to help, i.e. the facebook session thing is specific to the user model .... Many thanks in advance CHEERS> SAM -- Sam Joseph, Ph.D. Co-Director Laboratory for Interactive Learning...
2008 Jun 12
6
Session Best Practices
...booker session : session[:facebook_session] ||=&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; returning Facebooker::Session.create do |session|&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; session.secure_with!(facebook.sessions_key, facebook.fb_user_id, 1.day.from_now)&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end&nbsp; So... this all looks great. The problem is that when I add before_filter :ensure_has_status_update , :only =&gt; [:authenticate_facebo...