Return to Snippet

Revision: 2477
at February 26, 2007 19:55 by wackimonki


Initial Code
if session[:counter].nil?
  # code here
end

Initial URL


Initial Description
The code tests if session[:counter] exists. If you leave out the all important '?', it will fail with an error.

Initial Title
Testing If Variable is Empty (nil)

Initial Tags
rails

Initial Language
Ruby