“Nothing found” unless @positions.empty?
or
“Nothing found” if @positions.size == 0
_Kevin
Thanks guys (Kevin and Tom)
I went with @positions.size and that works good.
However , and this might be another thread all together I’m noticing a
little freaky behaviour.
This is an ajax form taking user conditions -
what I’m finding is the first time it hits a condition that returns no
records it won’t say no records found.
if I go back , clear the condition and put it in again , then it will.
Sound weird ?
Stuart
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.