Forum: Ruby on Rails session variable nil in benchmarking environment

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
89e7c8b162c71e9905fbfe7d2ec376dc?d=identicon&s=25 Fernando Blat (ferblape)
on 2007-01-26 08:21

I have installed RailsBench 0.9.1 in my rails app in order to test its
performance, but, I have a curious problem when trying to access to the
session hash variable, because it's nil all the time. The error is this:

ActionView::TemplateError (undefined method `[]' for nil:NilClass) on
line #1 of public/views/labels/crear-blog.rhtml:
1:       <% unless session['user'] %>
3:         <div id="crear-blog"><a href="/login/step1"><img
src="imag/ed/promo_crea_tu_blog.png" /></a></div>

I don't use any special configuration for managing sessions (PStore) nor
any special config variable. The database is the same that the
development environment.

I have deleted too all the session files in /tmp.

Any clue? Thanks!
145fe1d3aceb942a3ff4db5b5443ea97?d=identicon&s=25 Zhenjian YU (Guest)
on 2007-01-27 20:22
(Received via mailing list)
I encountered the same problem. Anyone have some idea?
This topic is locked and can not be replied to.