Displaying 1 result from an estimated 1 matches for "extended_form_builder".
2007 Dec 09
0
Writing Specifications for Custom Form Builders (and Helpers)
...field :login %>
<% end %>
It will output a regular div if there are no errors on the field or
<div class="error">... if there is an error.
So, I began trying to get this working. Searching about I discovered
that I could create a custom form builder so i created lib/
extended_form_builder.rb along with spec/lib/
extended_form_builder_spec.rb so I could start writing my
specifications. So far, so good.
An hour or so later, after searching, reading Rails source code and
abandoning specs completely I have ended up with the very basic:
class ExtendedFormBuilder < ActionView::H...