This project is archived and is in readonly mode.
Factor out hardcoded style in form div wrapping hidden inputs
Reported by Victor Costan | May 9th, 2010 @ 09:25 AM
In most circumstances, form_tag generates a
The solution I propose is as follows: factor out the
Comments and changes to this ticket
-
Victor Costan May 9th, 2010 @ 09:34 AM
Patch containing code and tests. Applies cleanly against Rails 3 edge. The method name (hidden_field_wrapper_tag) might not be the best option, I can change it to whatever people think would work.
-
Victor Costan May 9th, 2010 @ 09:47 AM
- Tag changed from actionview, rails3 to actionview, patch, rails3
-
Dan Pickett May 9th, 2010 @ 05:50 PM
- Tag changed from actionview, patch, rails3 to actionview, bugmash, patch, rails3
-
Jeff Kreeftmeijer May 15th, 2010 @ 02:54 PM
+1
Applies to master cleanly and tests pass. Looks a lot cleaner. :)
-
Santiago Pastorino May 15th, 2010 @ 10:38 PM
I know that naming are one of the most difficult things in programming but def test doesn't seem to be right :), make an effort, don't be lazy like me :P
-
Santiago Pastorino May 16th, 2010 @ 12:08 AM
- State changed from new to wontfix
Sorry this is not going to be fixed, don't worth changing the API for this, you can MonkeyPatch, thanks.
-
Victor Costan May 16th, 2010 @ 12:36 AM
- Assigned user set to Santiago Pastorino
I thought that Rails 3 is trying to move towards having a clean API for plugins.
I'm sorry for "def test"... I did that patch at 5am... I have no other explanation for how that got in there! I totally meant test_hidden_field_wrapper_tag!
Can you please reconsider if I send in an updated patch?
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>