Thursday, September 5, 2013

[Rails] Parameter with the same name as the controller returning the params hash instead of nil

Hi,

 

I am having an issue with this code[1].

Testing in cucumber if there is no parameter :shot breaks. Somehow the shout parameter it's returning the whole params hash. This thing happens everytime when the parameter has the same name as the controller.

There are any conventions or something?

You can find my cucumber output at [2].

 

[1] https://github.com/otzy007/params-bug

[2] http://showterm.io/ff7e3cdff6d69f4ab3308

 

Andrei

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate