Actually, the first case here doesn''t work at all. I get cookies[:cities] = [] # a blank array? So, it looks like the cookies methods don''t allow Hashes... On 3/7/06, Josh on Rails <rails@thewehners.net> wrote:> > In the second case (cities), this DOES work: > > cookies[:cities] = @params[:cities] > > BUT, creates a this-session-only cookie. Trying to set an expiration: > > cookies[:sources] = { :value => @params[:cities], :expires => > 30.days.from_now } > > ... produces the gsub error. >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060307/40114ea2/attachment.html