SV: [Rails] Duplicate forms after click

2012-01-06 Thread Brynjolfur Thorvardsson
Hi, I'm not really that familiar with rails/javascript integration. You are using a radiobutton to submit a form, and using the onClick event, have you considered simply using an input button instead? My suggestion about using a delay probably wouldn't work, what would you delay and where? When

SV: [Rails] Duplicate forms after click

2012-01-05 Thread Brynjolfur Thorvardsson
Hi, this sounds like a javascript problem. Javascript is executed asynchroniously on your browser so clicking fast means that you are sending more than one submit from the same form, causing Rails to return more than once from the controller. There are probably many ways to avoid this but one is