I have trouble with modal windows. On my instance, (ruby 1.9.3) with your PR, the modal window is not hidden and is always displayed :-/