문제

While i was reading the source code of will paginate i stumped upon a :wp_count_options setting in https://github.com/mislav/will_paginate/blob/master/lib/will_paginate/active_record.rb#L150 I was trying to find usage examples for using this setting for example what is useful for ? Can someone point me to a good read about using this option with will_paginate gem ?

도움이 되었습니까?

해결책

This is probably a duplicate of this answer

Rails .page call on model also calls count

If what you are asking is not this, please let me know

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