This project is archived and is in readonly mode.

#5730 ✓resolved
Aditya Sanghi

[PATCH] search_field form helper leaves the :object key in html attributes

Reported by Aditya Sanghi | September 29th, 2010 @ 12:51 PM

It seems the search_field form helper does not remove the "object" key from the options.

The search_field function stringify's keys and later tries to delete it as a symbol which obviously doesnt work.

This leaves the output form field with an invalid attribute "object='#<Post:0x103711958>'".

The fix is fairly simple and a patch is attached, or should i send a pull request?

My change is committed here -

http://github.com/asanghi/rails/commit/7ce0614ee4250606f03185a39585...

Feel free to point me out to the proper process of doing 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