This project is archived and is in readonly mode.

#2660 ✓resolved
Di Marcello

InstanceTag to_label_tag id attribute

Reported by Di Marcello | May 17th, 2009 @ 02:24 PM | in 2.x

InstanceTag method to_label_tag produces the wrong for attribute when an id options is given.

The solution is to add the marked line in to_label_tag:

name_and_id = options.dup
+ name_and_id["id"] = name_and_id.delete("for")

The attachment adds this line and a test (could not run the test, cause i get a Debugger:Module not found error, its the first time i did this, so i dont know how to fix this)

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages