Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6898 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

:submit property of link_to_remote doesn't work with non form elements

Reported by: Donald Piret Assigned to: core
Priority: normal Milestone: 1.2 regressions
Component: ActionPack Version:
Severity: normal Keywords:
Cc:

Description

The documentation specifies that

:submit: Specifies the DOM element ID that’s used as the parent of the form elements. By default this is the current form, but it could just as well be the ID of a table row or any other DOM element.

However, with the 1.2 RC1, this does not work with non-form elements anymore. This may or may not be related to Changeset [5449]

Either this is intended, in which case the documentation needs to reflect this and it needs to be documented, since a lot of code is likely to break with this change, or the ruby code needs to be adapted to reflect the changes in the prototype library.

Change History

12/31/06 18:42:57 changed by david

  • keywords deleted.

Will be fixed by #6887 when addressed.

01/05/07 00:10:43 changed by sam

  • keywords set to 1.2regression.

01/05/07 00:18:02 changed by sam

  • status changed from new to closed.
  • resolution set to fixed.

(In [5841]) prototype: Form.serialize once again works with non-form elements. This is a temporary change to prevent the Rails link_to_remote regression described in #6898. Prototype 1.5.1 will introduce an API for working with collections of arbitrary form elements. References #6887. Closes #6898.

03/04/07 13:49:15 changed by bitsweat

  • keywords deleted.
  • milestone changed from 1.2 to 1.2 regressions.