Hey François,

Francois Beausoleil a écrit :
> I just updated to Rails Edge, and found a strange error.  I have an
> anchor element which does a simple submit and update.  The anchor's
> onclick code is this:
...
> The error occurs on the call to Form.serialize('phones_head').  The
> specific error I get is: "$(form).getElements is not a function" on
> line 1755 of prototype.js.

If you updated an existing project, you're likely still using old
JavaScript files (older versions of Prototype did not automatically
extend <form> elements with Form.Methods).  Try this:

        rake rails:update

Or more chirurgically (but this maybe will leave a few issues lurking):

        rake rails:update:javascripts

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to