Some finishing touches to the form helpers
Reported by GMFlash | September 25th, 2008 @ 11:08 PM | in 1.0
I'm making this ticket so the finishing touches that the form helpers need aren't forgotten during the final stretch to merb 1.0.
Currently it is very hard to add custom helper methods to a builder that are not defined in the helpers.rb proxy methods.
The "ruby way" to solve this is pass the builder as a block var to form/form_for/fields_for and use the f.text_field syntax. In order to do this the logic to pick between a bound and unbound helper needs to be moved into the builder instead of the proxy methods.
Another way discussed is to auto-generate proxy methods for all public methods in the builder. This allows the nicer syntax that doesn't require passing the builder as a block var.
I think both of these solutions should be supported in one way or another.
Comments and changes to this ticket
-

GMFlash September 25th, 2008 @ 11:12 PM
- → State changed from new to open
-
Michael Klishin (antares) October 7th, 2008 @ 12:00 PM
- → Milestone changed from 0.9.8 to 1.0
- → Assigned user changed from Yehuda Katz (wycats) to Michael Klishin (antares)
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
