will_paginate with multiple params

Hi,

This is Mathew vivek A I am facing some problems using will_paginate for multiple params Can anyone explain me in detail

My code is :

<%= will_paginate @areas,:params => {:field_officer => params[:field_officer],:branch => params[:branch]}%>