advanced code snippet search
wackimonki on 02/26/07
rails empty rubyonrails
3 people have marked this snippet as a favorite
The code tests if session[:counter] exists. If you leave out the all important '?', it will fail with an error.
if session[:counter].nil? # code hereend
Report this snippet
You need to login to post a comment.