Monday, June 02, 2008

ruby on rails: will_paginate anchor param

Recently I discover that I can add an anchor to the will_paginate helper for the will_paginate plugin in rails.

This will create the url as "path/?page=2#myanchor".




<%= will_paginate @videos, :params => {:anchor => "myanchor" }%>


2 comments: