respond_to? blows up saying it needs two arguments
Reported by Ian White | November 25th, 2008 @ 12:29 AM
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?
Comments and changes to this ticket
-
Ian White November 25th, 2008 @ 12:39 AM
- State changed from new to accepted
(from [2ab3d0e4e0439f8510dbfdae2b931f52eade978c]) Added spec that proves respond_to problem [#1 state:accepted] http://github.com/ianwhite/resou...
-
Ian White November 25th, 2008 @ 12:39 AM
- 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 state:resolved] http://github.com/ianwhite/resou...
-
Ian White November 25th, 2008 @ 02:42 AM
(from [7e96acb8a369d76b315212844ba8925851da4689]) refactored changes in #5608075 [#1] http://github.com/ianwhite/resou...
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
resources_controller is a rails plugin that eases the pain of RESTful controllers.
People watching this ticket
Referenced by
- 1 respond_to? blows up saying it needs two arguments (from [2ab3d0e4e0439f8510dbfdae2b931f52eade978c]) Added s...
- 1 respond_to? blows up saying it needs two arguments (from [5608075a26864f57468ce2f684405cebd81d891e]) Only pa...
- 1 respond_to? blows up saying it needs two arguments (from [7e96acb8a369d76b315212844ba8925851da4689]) refacto...