Sunday, November 7, 2010

[Rails] making your own FormBuilder

Hey all

So I can follow this and make my own form helpers by extending
FormBuilder ...http://www.sepcot.com/blog/2008/05/Accessible-Field-
Errors

Also in that tutorial it shows how to redefine "field_error_proc"

My question is ..... is it possible to define the "field_error_proc"
method JUST for your own version of the ForumBuilder?

Or maybe, inside the field_error_proc method, I could test to see what
class of FormBuilder is being used, and then decide on the behavior?
(super as the default?)

thanks for any suggestions!
:)

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate