On Feb 5, 2008, at 1:30 PM, Charles McKnight wrote:

> Is there a trick to using control_for in forms?  I've been trying to
> make a simple form with a couple of text fields and I keep getting a
> unknown method error.

There is a patch that never made it in for some reason.

% svn diff
Index: lib/merb_helpers/form_helpers.rb
===================================================================
--- lib/merb_helpers/form_helpers.rb    (revision 1339)
+++ lib/merb_helpers/form_helpers.rb    (working copy)
@@ -575,7 +575,7 @@
        end

        def errorify_field(attrs, col)
-        attrs.add_html_class!("error") if @_obj.respond_to?(:errors)  
&& @_obj.errors.on(col)
+        attrs.add_html_class!("error") if @_obj.respond_to?(:errors)  
&& [EMAIL PROTECTED](col).empty?
        end

        def set_multipart_attribute!(attrs = {})

>
>
> Thanks!
> _______________________________________________
> Merb-devel mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/merb-devel

_______________________________________________
Merb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/merb-devel

Reply via email to