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 : calling functions from model to controller

Ask a Rails expert : calling functions from model to controller

Ask a Rails expert : rspec examples?

Ask a Rails expert : Radio buttons with Observe field

Ask a Rails expert : copy to clipboard

Ask a Rails expert : url_for

Ask a Rails expert : API call problem

Ask a Rails expert : Invoke a plugin from a plugin?

Ask a Rails expert : Restful problem

Ask a Rails expert : using $F

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