search for: another_key

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

2006 Jul 04
2
clear all sessions keys
hi list, how to iterate over the Session object to reset all session keys (after a logout for example) session[''something'']=nil session[''another_key'']=nil ... is there something like session.keys{|aSessionKey| session[aSessionKey]=nil} ? thanks arnaud
2005 Aug 22
2
Symbols as Parameters
Hey all, I''ve been staring at the pickaxe, experimenting, and looking through some of the Rails API but I can''t put this simple thing together. I want to create a method that can have zero or more parameters and some of those are symbols. A very simple example would look something like this: find(options = {}) if options[:unique] puts ''Do the unique