Nic Lin's Blog

喜歡在地上滾的工程師

rails 非hash只想用array輸出page

myarray = Class.all @results = Kaminari.paginate_array(myarray).page(params[:page])

http://stackoverflow.com/questions/6934623/undefined-method-page-for-array0xafd0660

comments powered by Disqus