Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Rails 2.2.x the binding argument of concat is no longer needed

#258

Working in mislav-will_paginate 2.3.6 and Rails 2.2.2 when calling paginated_section you'll get an error on line 145 with a deprecation warning. This;-

def paginated_section(*args, &block)

  pagination = will_paginate(*args).to_s
  content = pagination + capture(&block) + pagination




(line 145) concat content, block.binding
end




needs to be changed to;-

def paginated_section(*args, &block)

  pagination = will_paginate(*args).to_s
  content = pagination + capture(&block) + pagination
  concat content
end




The extra argument to concat has been removed from Rails 2.2.x

Reported by John Small · December 31st, 2008 @ 07:31 PM

State: duplicate
Milestone: none
Assigned to: Mislav Mislav

Activity

  1. John Small
    John Small

    Damm, I just saw that the change has already been committed. I did do a search on "concat" before entering the ticket. Honest!

    December 31st, 2008 @ 07:37 PM

  2. Mislav
    Mislav
    • Tag changed from rails 2.2, block.binding, concat, paginate_section to concat, deprecation, paginate_section
    • State changed from new to duplicate

    No worries :) Thanks anyway for good intentions. Closing

    January 8th, 2009 @ 03:20 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.