문제

Has anybody had any luck using the Serel gem in conjunction with its date-related scopes? For instance, this works

q = Serel::Question
questions = q.tagged("JavaScript").pagesize(2).get

But this does not:

d = DateTime.new(2013,2,5)
q.fromdate(d).tagged("JavaScript").pagesize(2).get

Producing the error:

NoMethodError: undefined method `tagged' for 1359676800:Fixnum

Thanks so much WJG

도움이 되었습니까?

해결책

This turned out to be a bug, which was fixed yesterday: https://github.com/thomas-mcdonald/serel/issues/10.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top