If you're assigning it via javascript, it should be htmlFor
(label.htmlFor = 'id').  Not sure how builder.node works, but there
might need to be a special case added for that one.

Greg

> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Andreas Wahlin
> Sent: Tuesday, July 25, 2006 1:38 PM
> To: rails-spinoffs@lists.rubyonrails.org
> Subject: [Rails-spinoffs] Builder.node label for attribute
> 
> I've googled a bit, but haven't come up with anything. It seems the
> Builder.node chokes on the for attribute when building label tags.
> Probably because of the keyword for when looping through the
arguments.
> Is this a known problem? I wrote my own patch that seems to solve it
> (substituting labelFor instead of for) but an official solution would
> be nice.
> 
> Andreas
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to