我在我的rails应用程序中使用了will_paginate,它工作正常,但我想使用ul li list作为我的webdesigner布局。实际上,使用我的代码,它只是渲染
我的观点:
<div class="pagination">
<ul><li><%= will_paginate @organizations %></li></ul>
</div>
我的源代码:
<ul><li><div class="pagination">
<span class="previous_page disabled">← Previous</span>
<em>1</em>
<a rel="next" href="/organizations?page=2&search=2&submit_search=ok">2</a>
<a href="/organizations?page=3&search=2&submit_search=ok">3</a>
<a class="next_page" rel="next" href="/organizations?page=2&search=2&submit_search=ok">Next →</a>
</div></ul>/<li>
我希望得到这样的结果:
<div class="pagination">
<ul>
<li class="prev"><a href="#"><span>Prev</span></a></li>
<li><a href="#"><span>1</span></a></li>
<li><a href="#"><span>2</span></a></li>
<li><a href="#"><span>3</span></a></li>
<li class="next"><a href="#"><span>Next</span></a></li>
</ul>
</div>
怎么做?