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.

respond_to? blows up saying it needs two arguments

#1

On some setups, respond_to? is defined using an old method signature with only one argument.

This means that resources_controller causes these to blow up, as it sends two arguments to the chained respond_to?

Reported by Ian White · November 25th, 2008 @ 12:29 AM

State: resolved
Milestone: none
Assigned to: Ian White Ian White

Activity

  1. Ian White
    Ian White
    • State changed from new to accepted

    (from [2ab3d0e4e0439f8510dbfdae2b931f52eade978c]) Added spec that proves respond_to problem [#1 respond_to? blows up saying it needs two arguments state:accepted] http://github.com/ianwhite/resou...

    November 25th, 2008 @ 12:39 AM

  2. Ian White
    Ian White
    • State changed from accepted to resolved

    (from [5608075a26864f57468ce2f684405cebd81d891e]) Only pass the second argument to respond_to? if it is not default. This ameliorates the problem of older software using the single argument repsond_to method signature. [#1 respond_to? blows up saying it needs two arguments state:resolved] http://github.com/ianwhite/resou...

    November 25th, 2008 @ 12:39 AM

  3. Ian White
    Ian White

    (from [7e96acb8a369d76b315212844ba8925851da4689]) refactored changes in #5608075 [#1 respond_to? blows up saying it needs two arguments] http://github.com/ianwhite/resou...

    November 25th, 2008 @ 02:42 AM

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.