but just make sure that you change the nickname param from “” [empty
string]
to nil or it won’t work. “”.nil? => false. I dunno why there’s not a
:allow_blank => true which could cover nil? and empty?
but just make sure that you change the nickname param from “” [empty
string]
to nil or it won’t work. “”.nil? => false. I dunno why there’s not a
:allow_blank => true which could cover nil? and empty?
RSL
Hmm, thats kind of weird, in the Web D. with Rails the book
give a example to this.
Perhaps you have other errors? I dunno how else to help. Here’s the API
page
for validates_length_of which clearly states that :allow_nil is a valid
parameter.
Perhaps you have other errors? I dunno how else to help. Here’s the API
page
for validates_length_of which clearly states that :allow_nil is a valid
parameter.