I encountred an error on form submission. This form is defined as :
<% remote_form_for @my_object do |f| %>
...
<% end %>
The generated HTML is :
<form action="/my_objects" id="new_my_object" method="post"
onsubmit="new Ajax.Request('/customers', {
asynchronous:true,
evalScripts:true,
parameters:Form.serialize(this)
}); return false;">
...
</form>
I encountred this JS error :
Uncaught ReferenceError: Ajax is not defined
I read somewhere it's a Prototype error, but I don't understand the mistake I made.
My configuration is Rails 2.3.16, Ruby 1.8.6, jquery 1.9.1 and jquery-ui 1.10.2.