I have faced the plain simple situation, that i can't figure out.
I have to deside, whether to show the "more" link, depending of the articles count
The code is plain simple
@no_more = offset + length >= Article.count
@no_more variable equals to nil sometimes. I see in debugger, that offset=0, length=10 and Article.count=12
But the expression above gives nil
Even this, does't helps:
@no_more = false if @no_more.nil?
@no_more will still be nil
What is a reason of such a magic can be ?