similar to: Sessid.

Displaying 20 results from an estimated 3000 matches similar to: "Sessid."

2008 May 21
2
Replacing ActiveRecordStore::Session with a custom model
Has anyone managed to replace ActiveRecordStore::Session with their own model? In the source (http://dev.rubyonrails.org/browser/trunk/actionpack/lib/ action_controller/session/active_record_store.rb) it says you can override the default by setting CGI::Session::ActiveRecordStore.session_class = MySessionClass I have tried doing this in a number of ways but I get all kinds of weird errors, as
2006 May 10
3
has_many association.
I''m creating a address book. A user can have many contacts. In the user model, I put: has_many :contacts And in the contact model, I put: belongs_to :user To list all contacts, I search as following: @user = User.find(session[:user_id]) And rendering: <%= render(:partial => "contact", :collection => @user.contacts)%> To persist I am using the following
2006 Oct 17
6
Session access interfers with other model access
Sorry to be such a bother but I''m not getting this. I have two models: Emrec and Session (I''m using AR for session mgmt.) In my worker I can access the Emrec model and delete a record, AS LONG AS I don''t try to access the Session model. With the Session model access commented out as below, the Emrec record gets deleted. If I uncomment those lines, the Emrec
2006 May 10
2
Rails, Postgres and the Date Field.
Hi guys, I''m having problems with my app. First of all, I created a date_select with the code: <%= date_select(''contact'', ''birthday'', :order => [''day'',''month'',''year'']) %> In the contacts table, I create a date field: birthday DATE When I save the values goes wrong into the database.
2006 May 17
3
Session in ActiveRecordStore
The Agile book seems to say I should specify this as follows, probably in the environments.rb: ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:database_manager] = CGI::Session::ActiveRecordStore BUT the environments.rb file would have me Un-Comment this: config.action_controller.session_store = :active_record_store Anyway, I''ve tried both, and in both cases it
2009 Oct 17
3
Security problems with CookieStore and CSRF protection
Dear Rails community, As part of a programming languages/security research group at the University of Maryland, we are building some static analysis tools for Rails applications. These tools work by taking formally specified properties of interest, and then analyzing code to verify that those properties indeed hold. Using these tools, we found some security vulnerabilities in Rails, and we would
2006 Dec 01
2
ActiveRecord Sessions
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
2007 Nov 20
29
Don't make cookie-stored sessions a default
Hi! Before Rails 2.0 is coming, I suggest not to make CookieStore the default session storage. It stores clear-text values on the client-side and the integrity check hash can be brute-force attacked. I understand that this has been set due to speed advantages, but I believe it''s better to make better security a default. I''ve written a blog post about this
2006 Apr 28
3
persistent cookies
hello, I am trying to implement a "remember be" box for logins, however I cant seem to get it to work. I have tried the following 2 methods but neither seem to work. When i check the expiry time in firefox it always says "end of session". What is the proper way to handle this so the session cookie "_session_id" doesnt expire for a year? I tried
2005 Aug 08
7
Problems with ./scripts/generate scaffold
Hi all, I''m new to rails after having used perl for most of these things, and am trying to get my head around the generate script for a project playing around with. If I do: ./scripts/generate controller Device I get app/controllers/device_controller.rb where I can then add: scaffold :device However, if I want to actually generate the scaffolding so I can make some changes:
2006 May 17
3
Slackware 10.2
Hi guys, I'm trying to use asterisk with my slackware 10.2 box. Kernel 2.6.13 from the testing... The udevd are not creating the /dev/zap devices. Someone already have success installing asterisk over slackware? Thanks in advance. Fernando Lujan
2008 Mar 03
0
Routing through LatLng points and other stuff
Hi to all! Well, I''ve been trying to find a solution to route using known LatLng points - I already have the location position, all I needed was the actual route, so I''ve put together an addition to the "mapstraction-route.js". I''ve listed it below, so maybe it would not be a bad idea to merge it to the trunk... Also, I have a few other questions regarding
2006 Apr 04
2
Ajax Effects Tutorial
Hi there, I am in love with rails... And now I want to rule Ajax effects with rails. Where could I find a book like: Ajax on Rails? :) Tutorials will be welcome too. Thanks in advance. Fernando Lujan
2008 Apr 08
3
Session Expired for Profile Publishing
Ok. I''m not having any success with publishing profile FBML. Example code: class WelcomeController < ApplicationController layout "facebook" ensure_application_is_installed_by_facebook_user def index @user = facebook_session.user ... @user.profile_fbml = render_to_string( :template => ''welcome/profile'' ) end end Results in
2007 Feb 20
1
error message for record not found ?
I''m using backgroundrb for session management and deletion of visitor-entered information when a session is abandoned. The visitor can either click a button to end their session and remove their data, or backgroundrb will do it for them after 5 minutes of inactivity. Everything''s working fine, I think. If the visitor explicitly logs out, then when the worker checks for their
2006 Apr 25
2
agile depot app login failure :(
Hi *, In an attempt to go back to the drawing board and learn RoR some more - I have built the depot application from the agile book. After finishing I tried to create a user for the admin section, however when ever I go to: http://localhost:3000/login/add_user It redirects to the login action, I don''t see the [add user] submit button?? I am sure this is connected to the
2006 May 24
2
TE406P - MFC/R2
Guys, I'm trying to configure a TE406P with MFC/R2. here goes my zaptel.conf: span=1,0,0,ccs,hdb3,crc4 cas=1-15:1101 dchan=16 cas=17-31:1101 span=2,0,0,ccs,hdb3,crc4 cas=32-46:1101 dchan=47 cas=48-62:1101 The first strange behavior is that the: zap show status shows this: Description Alarms IRQ bpviol CRC4 T4XXP (PCI) Card 0 Span 1
2006 May 18
1
R2/MFC Configuration.
I'm trying to put asterisk working with a proprietary pbx system. I'm doing it using a T1 crossover cable. The pbx system uses the R2/MFC specification. And the don't inform if it uses cas, ccs, ami or hbd3. My digium card is flashing a red light. How can I put this working with the R2/MFC system? Thanks. Fernando Lujan
2006 Mar 29
5
Asterisk Between PBX and FXS
Hi guys, I''m setting up asterisk to run with another pbx server. This pbx server support a feature that allows 2 extensions connect to the same FXS. No I put asterisk in the middle. Asterisk receives the call and dial to a SIP/peer. How the pbx installed support 2 extensions to one fxs... How can I figure out in asterisk which extension was dialed before the call came to asterisk?
2006 Oct 16
6
accessing session data in worker
Is there something special I need to do to access session data in a worker? I''m using an AR session store. I''ve been working with Ezra''s tutorial, modifying it a little here and there to figure it out. So I changed the progress bar to a simple count-down in the worker which sends back the count to display in the view. No big deal. But if I try to access session