quinta-feira, 22 de janeiro de 2009

will_paginate styling

Other thing that I tried to do and spent a little time, like 30minutes to discover that it was soooooooo easy, is how to style will_paginate

I used paginate.css file in /vendor/pugins/will_paginate/examples
and it was so easy, wished that I knew it before...

include the css in your layout and paginate with one more option :class

<%= will_paginate @things, options = { :previous_label => "Anterior", :next_label => "Próximo", :class => "digg_pagination"} %>

the result:

Nenhum comentário:

Postar um comentário