<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><P style="margin: 0.0px 0.0px 6.0px 0.0px"><FONT face="Lucida Grande" size="5" style="font: 20.0px Lucida Grande; letter-spacing: -1.0px"><B><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 12px; font-weight: normal; letter-spacing: normal;">"dom_class" is intriguing feature of the the new simply helpful plug-in, which I suspect might be destined for Rails 1.3. I wonder if this might make it easier to embed microformats in Rails applications by keying of appropriate Class names. Or, whether we could somehow "teach" dom_class about differnet microformats mappings?!?</SPAN></FONT></B></FONT></P><P style="margin: 0.0px 0.0px 6.0px 0.0px"><FONT class="Apple-style-span" face="Lucida Grande"><BR class="khtml-block-placeholder"></FONT></P><P style="margin: 0.0px 0.0px 6.0px 0.0px"><FONT class="Apple-style-span" face="Lucida Grande">-- Ernie P.</FONT></P><P style="margin: 0.0px 0.0px 6.0px 0.0px"><FONT class="Apple-style-span" face="Lucida Grande" size="6"><SPAN class="Apple-style-span" style="font-size: 20px; letter-spacing: -1px;"><B><BR class="khtml-block-placeholder"></B></SPAN></FONT></P><P style="margin: 0.0px 0.0px 6.0px 0.0px"><A href="http://www.matthewman.net/articles/2006/09/04/new-rails-feature-simply_helpful">http://www.matthewman.net/articles/2006/09/04/new-rails-feature-simply_helpful</A><FONT class="Apple-style-span" face="Lucida Grande" size="6"><SPAN class="Apple-style-span" style="font-size: 20px; letter-spacing: -1px;"><B></B></SPAN></FONT></P><P style="margin: 0.0px 0.0px 6.0px 0.0px"><A href="http://groups.google.co.uk/group/rubyonrails-talk/msg/d5a430337da11313">http://groups.google.co.uk/group/rubyonrails-talk/msg/d5a430337da11313</A></P><P style="margin: 0.0px 0.0px 6.0px 0.0px"><FONT face="Lucida Grande" size="5" style="font: 20.0px Lucida Grande; letter-spacing: -1.0px"><B>DOM Class names</B></FONT></P>
<P style="margin: 0.0px 0.0px 0.0px 0.0px; background-color: #000000"><FONT face="Monaco" size="3" color="#8af92e" style="font: 12.0px Monaco; color: #8af92e"><%= dom_class(object) %></FONT></P>
<P style="margin: 0.0px 0.0px 14.0px 0.0px; line-height: 15.0px"><FONT face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande">Creates a CSS class name based on the object’s class – so a </FONT><FONT face="Monaco" size="3" style="font: 12.0px Monaco">ProductionType</FONT><FONT face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande"> object would get a DOM class of </FONT><FONT face="Monaco" size="3" style="font: 12.0px Monaco">production_type</FONT><FONT face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande">.</FONT></P>
<P style="margin: 0.0px 0.0px 14.0px 0.0px; line-height: 15.0px"><FONT face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande">On its own, this new function maybe isn’t as exciting as the </FONT><FONT face="Monaco" size="3" style="font: 12.0px Monaco">dom_id</FONT><FONT face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande"> and </FONT><FONT face="Monaco" size="3" style="font: 12.0px Monaco">render</FONT><FONT face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande"> improvements, but it’s used in the next feature, and it’s encouraging good practice by having clear, readable and consistent class names for your DOM objects.</FONT></P>
</BODY></HTML>