bcardarella/client_side_validations — Issue #217: Orphan <script> included following </form> tag
Author: shedd
Created: 2011-11-09 17:18:24+00:00
State: open

I'm running into a strange issue with client_side_validations using the Rails 2 wrapper gem. I'm using Rails 2.3.14.

Everything works great in development mode. However, when I deploy to our staging environment, running in production mode, I'm seeing something very strange.

I have my form setup:

<% form_for @user, :url => { :action => :step1 }, :validate => true do |f| %>
...
<% end %>

But when the form is actually generated there is a

end tag:

See screenshot: http://cl.ly/3L1T3t2X140T3l0l2p3w

However, unlike in development mode, there's nothing enclosed by the script tag.

If I switch validations off (:validate => false on the form), this remains. In fact, I've checked other forms throughout the site and this JavaScript is being added to all.

Just to make sure that this wasn't some kind of funny client side issue, I rendered the page via lynx to get the pure source, without JS being executed. It exists there, too:

Email*

Very strange! Any ideas what this could be?