I ran into this same issue, it has nothing to do with Rails. This looks to be an issue with the way WebKit (used by Safari and Chrome) handles javascript and form submits. Looks like if there is a onclick on a submit button, data from the form is not submitted when the page is posted.
On Dec 24 2008, 2:49 am, Ken Wagner <[email protected]> wrote: > View file has a js function "confirm_result()" in <head> section: > > <script type="text/javascript"> > function confirm_action() > { > result = confirm("Please select OK or Cancel") > if (result == true) > document.write("You selected OK.") > else > document.write("You selected Cancel.") > } > </script> > > The <body> section has > > <input type="button" onclick="confirm_action()" value="Submit"> > > Works just fine in IE7 and FireFox3. > > But not in Chrome 1 or Safari 3. In the latter two the confirm box > appears, then a new blank page without the "You selected..." text. Js > otherwise working fine > > Has anyone else encountered this? Bug in Rails? Chrome? Safari? > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

