title: Rails3: How to pass param into custom will_paginate renderer?
body: <p>I've got a custom will_paginate renderer that overrides WillPaginate::ViewHelpers::LinkRenderer's link method like so:</p>
  
  <pre><code>   def link(text, target, attributes = {})
        "&lt;a href='/users/95/friends_widget?page=#{target}' rel='next' data-remote='true'&gt;#{text}&lt;/a&gt;"
     end
  </code></pre>
  
  <p>...and that works great, except you can see the hard-coded 95 in that link. How would I pass a parameter (e.g. user or user's ID) into the custom renderer via the Rails view?</p>
  
  <pre><code>&lt;%= will_paginate(@user_friends, :remote =&gt; true, :renderer =&gt; FriendsRenderer) %&gt;
  </code></pre>
  
  <p>Or is there something I'm missing, some easier way to do it?</p>
  
  <p>BTW: @user_friends isn't available in the custom renderer, and I've already tried just adding params onto the end of that will_paginate call, e.g. :user => user)</p>