Hi, just a quick one. How can I access session values in validation?
Here’s what I’m trying to do…
validates_numericality_of :points, :less_than_or_equal_to =>
And this is the message I get
undefined local variable or method `session’ for #Class:0x5181a8c
Any help would be appreciated. Thanks.