” Arthur Neil “.squeeze(” “).strip
To find empty characters/space in a filed; use
if params[:description].squeeze(” “).strip.length == 0
[handle it here]
end
Jul 10th, 2009 by L J Arthur Neil
” Arthur Neil “.squeeze(” “).strip
To find empty characters/space in a filed; use
if params[:description].squeeze(” “).strip.length == 0
[handle it here]
end