views:

33

answers:

1

Hello, I'm using will_paginate in my rails application, it's working fine but I would like to use ul li list for my webdesigner layout. Actually with my code, it's only rendering

my view :

<div class="pagination">
   <ul><li><%= will_paginate @organizations %></li></ul>
 </div>

My source code:

<ul><li><div class="pagination">
<span class="previous_page disabled">&#8592; Previous</span>
<em>1</em> 
<a rel="next" href="/organizations?page=2&amp;search=2&amp;submit_search=ok">2</a> 
<a href="/organizations?page=3&amp;search=2&amp;submit_search=ok">3</a> 
<a class="next_page" rel="next" href="/organizations?page=2&amp;search=2&amp;submit_search=ok">Next &#8594;</a>
</div></ul>/<li>

Can you help me? Thanks in advance!

A: 

The will_paginate docs link to an example that is nearly identical to what you're asking for here.

Scroll down to "Doing it Your Way."

jdl