Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert will_paginate customization pr...

Replytotopic

will_paginate customization problem

Posted in Forums : Ask a Rails expert

 
Profile

Authority 0
Posting Rating 45
Sign in to rate this post

Hi,
I have a problem while customizing will_paginate, as I wanted to pass a additional object with the will_paginate tag, which is not acceptable now and it is giving error.
the syntax accepted in normal case is:
<= will_paginate @deals , :class=>”red paging leftfloat”, :update => “listing”>

want to extend like this:
<= will_paginate @deals , :deals_obj => @deals_obj, :class=>”red paging leftfloat”, :update => “listing”>

Please find a corrective solution to this
Any kind of help/suggestion is welcome.

Thanks
Martin

 
Me

Authority 62
Posting Rating 100
Sign in to rate this post

May I ask why you’d want to do this? Can’t you just use the @deals_obj in some other way?

Replytotopic

Other Recent Topics

Ask a Rails expert : How to work with ror 2.1.1 using Netbeans IDE 6.1

Ask a Rails expert : json gem error

Ask a Rails expert : Problem with break

Ask a Rails expert : activesupport string first method error

Ask a Rails expert : url_for broken ?

Ask a Rails expert : map.routes.rb pls help

Ask a Rails expert : how to h tag in controller

Ask a Rails expert : Problem with Restful routing and partial form

Ask a Rails expert : will_paginate, search and ajax

Ask a Rails expert : captcha

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel