“Nothing found” unless @positions.empty?
“Nothing found” if @positions.size == 0
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 ?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.