If there was some old code that, under certain conditions, would have changed the parameters. I believe that it worked before (and not 100%). Now we get the parameters equal to zero, regardless of whether the condition is satisfied.
The culprit is in this state, I am doing params = tmp.dup . Even when the condition is false, it causes an error in the update action.
I was able to recreate with a minimal test
(Rails 2.3.5)
rails bug; cd bug; script/generate scaffold bug name:string; rake db:create; rake db:migrate;
change applications / controllers / bugs_controller.rb add to start of update action
l_p = params.dup if (false) params = l_p.dup # NOT REACHED end
script / server WEBrick -p 5001
go to http: // localhost: 5001 / bugs create a new error fix the error submit
source share