Rails Prototype Helpers: Set 'evalScripts' parameter to false
Today I noticed that whenever using some of the Prototype Helpers in Rails (such as linktoremote or remote_function), it was setting by default the evalScripts parameter to true. For those who don't know, Prototype uses evalScripts to evaluate anything in <script> tags from the response text. This was giving me major headaches in a piece of code today.
Looking at the previously-linked API page for the Prototype Helpers, there was no mention on how to set this parameter to false. I thought that simply passing :evalScripts => false as an option to the helper would do the trick, but it didn't. So I had to dig into Rails source code to see if there was any way to set this to false.
In short, passing :script => false as an option to your Prototype Helper code on the view will correctly set the evalScripts parameter to false.
Hope this helps someone!