我在我的应用中使用kaminari和bootstrap_kaminari宝石。以前他们工作正常,但现在,我不知道这是否是我所做的更新,每次调用方法paginate
时都会出现此错误:
ActionView::Template::Error (wrong number of arguments(0 for 1)):
7: -# per_page: number of items to fetch per page
8: -# remote: data-remote
9: %li{:class => "page#{' active' if page.current?}"}
10: = link_to page, page.current? ? "#" : url, {:remote => remote, :method => method, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil}
app/views/kaminari/bootstrap/_page.html.haml:10:in `method'
app/views/kaminari/bootstrap/_page.html.haml:10:in `_app_views_kaminari_bootstrap__page_html_haml___4572733049493505448_70240978127920'
app/views/kaminari/bootstrap/_paginator.html.haml:14:in `block (2 levels) in _app_views_kaminari_bootstrap__paginator_html_haml__2289167586420570675_70240961152960'
app/views/kaminari/bootstrap/_paginator.html.haml:12:in `block in _app_views_kaminari_bootstrap__paginator_html_haml__2289167586420570675_70240961152960'
app/views/kaminari/bootstrap/_paginator.html.haml:8:in `_app_views_kaminari_bootstrap__paginator_html_haml__2289167586420570675_70240961152960'
app/views/network/_job_offer_results.html.erb:74:in `_app_views_network__job_offer_results_html_erb___3561074850404149034_70240933051920'
app/views/network/job_offer_home.html.erb:60:in `_app_views_network_job_offer_home_html_erb___1400061891974561937_70240932539240'
我不知道哪个方法应该采用1个参数但是采用0. page.current?
,page.next?
或page.prev?
感谢您的帮助