I don’t get form_tag

Ok, so I call something like

html_options = {
  :onSubmit => "new Ajax.Request(\"/barn/render_event_response\")"
}

form_tag("barn", html_options)

Can you see my well-escaped JavaScript?

However, I get

"<form action="/barn/render_event_response" method="post" 
  onsubmit="new Ajax.Request(\"/barn/render_event_response\")"

Why does Rails &quot; my JavaScript? Can anybody help?

Advertisements

One thought on “I don’t get form_tag

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s