<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for Plataforma Tecnologia Blog</title>
	
	<link>http://blog.plataformatec.com.br</link>
	<description>O espaço da Plataforma Tecnologia para falar sobre Ruby, Ruby on Rails e engenharia de software.</description>
	<lastBuildDate>Wed, 10 Mar 2010 21:10:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/PlataformaBlogComments" /><feedburner:info uri="plataformablogcomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on Show your objects baby! by Rafael Rosa</title>
		<link>http://feedproxy.google.com/~r/PlataformaBlogComments/~3/LOj1QTDq9qg/</link>
		<dc:creator>Rafael Rosa</dc:creator>
		<pubDate>Wed, 10 Mar 2010 21:10:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.plataformatec.com.br/?p=817#comment-526</guid>
		<description>Hi,

@Nando is right, the DL, DT and DD tags are the recommended ones for this job, label is exclusive for form. My bad :)

http://www.w3.org/TR/html5/semantics.html#the-dl-element

The styling may be a little trick, but perhaps it worth the trouble to define a correct default.

Regards</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>@Nando is right, the DL, DT and DD tags are the recommended ones for this job, label is exclusive for form. My bad <img src='http://blog.plataformatec.com.br/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.w3.org/TR/html5/semantics.html#the-dl-element" rel="nofollow">http://www.w3.org/TR/html5/semantics.html#the-dl-element</a></p>
<p>The styling may be a little trick, but perhaps it worth the trouble to define a correct default.</p>
<p>Regards</p>
<img src="http://feeds.feedburner.com/~r/PlataformaBlogComments/~4/LOj1QTDq9qg" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.plataformatec.com.br/2010/03/show-your-objects-baby/comment-page-1/#comment-526</feedburner:origLink></item>
	<item>
		<title>Comment on Show your objects baby! by José Valim</title>
		<link>http://feedproxy.google.com/~r/PlataformaBlogComments/~3/lT-7l5CUBVU/</link>
		<dc:creator>José Valim</dc:creator>
		<pubDate>Wed, 10 Mar 2010 21:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.plataformatec.com.br/?p=817#comment-525</guid>
		<description>Agreed, label is def. not the recommended one. First show_for versions used b tags instead of strong. And then  I got a few pull requests asking to change to strong. Good news is, it's easy to customize in your app. :)

@BillSaysThis I'm investigating. :)</description>
		<content:encoded><![CDATA[<p>Agreed, label is def. not the recommended one. First show_for versions used b tags instead of strong. And then  I got a few pull requests asking to change to strong. Good news is, it&#8217;s easy to customize in your app. <img src='http://blog.plataformatec.com.br/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>@BillSaysThis I&#8217;m investigating. <img src='http://blog.plataformatec.com.br/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/PlataformaBlogComments/~4/lT-7l5CUBVU" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.plataformatec.com.br/2010/03/show-your-objects-baby/comment-page-1/#comment-525</feedburner:origLink></item>
	<item>
		<title>Comment on Show your objects baby! by Nando Vieira</title>
		<link>http://feedproxy.google.com/~r/PlataformaBlogComments/~3/mEiQMalGWSY/</link>
		<dc:creator>Nando Vieira</dc:creator>
		<pubDate>Wed, 10 Mar 2010 20:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.plataformatec.com.br/?p=817#comment-524</guid>
		<description>@Rafael and @Alvaro: even the label tag isn't the recommend one. The label is meant to be associated with a form element.
I think DL can be used, but is not that easy to style it. I'd probably go with p &gt; strong + text.</description>
		<content:encoded><![CDATA[<p>@Rafael and @Alvaro: even the label tag isn&#8217;t the recommend one. The label is meant to be associated with a form element.<br />
I think DL can be used, but is not that easy to style it. I&#8217;d probably go with p &gt; strong + text.</p>
<img src="http://feeds.feedburner.com/~r/PlataformaBlogComments/~4/mEiQMalGWSY" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.plataformatec.com.br/2010/03/show-your-objects-baby/comment-page-1/#comment-524</feedburner:origLink></item>
	<item>
		<title>Comment on Show your objects baby! by BillSaysThis</title>
		<link>http://feedproxy.google.com/~r/PlataformaBlogComments/~3/JLGiN3d6bHc/</link>
		<dc:creator>BillSaysThis</dc:creator>
		<pubDate>Wed, 10 Mar 2010 20:31:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.plataformatec.com.br/?p=817#comment-523</guid>
		<description>I'm getting a generator not found (using latest Rails 3):

wgd1 root# gem install show_for
Successfully installed show_for-0.2.0
1 gem installed
Installing ri documentation for show_for-0.2.0...
Updating class cache with 4063 classes...
Installing RDoc documentation for show_for-0.2.0...

wgd1$ rails generate show_for_install
Could not find generator show_for_install.
wgd1$ rails g
Please choose a generator below.
Rails:
... as expected
ActiveRecord:
... as expected
Erb:
... as expected
Rspec:
... as expected
TestUnit:
... as expected</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting a generator not found (using latest Rails 3):</p>
<p>wgd1 root# gem install show_for<br />
Successfully installed show_for-0.2.0<br />
1 gem installed<br />
Installing ri documentation for show_for-0.2.0&#8230;<br />
Updating class cache with 4063 classes&#8230;<br />
Installing RDoc documentation for show_for-0.2.0&#8230;</p>
<p>wgd1$ rails generate show_for_install<br />
Could not find generator show_for_install.<br />
wgd1$ rails g<br />
Please choose a generator below.<br />
Rails:<br />
&#8230; as expected<br />
ActiveRecord:<br />
&#8230; as expected<br />
Erb:<br />
&#8230; as expected<br />
Rspec:<br />
&#8230; as expected<br />
TestUnit:<br />
&#8230; as expected</p>
<img src="http://feeds.feedburner.com/~r/PlataformaBlogComments/~4/JLGiN3d6bHc" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.plataformatec.com.br/2010/03/show-your-objects-baby/comment-page-1/#comment-523</feedburner:origLink></item>
	<item>
		<title>Comment on Show your objects baby! by Carlos Antônio</title>
		<link>http://feedproxy.google.com/~r/PlataformaBlogComments/~3/peHDIydlZPI/</link>
		<dc:creator>Carlos Antônio</dc:creator>
		<pubDate>Wed, 10 Mar 2010 20:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.plataformatec.com.br/?p=817#comment-522</guid>
		<description>@Rafael really thanks for the tips. And we are going to take a look at the markup inside the comments :).. 

@Rafael and @Alvaro, the initializer ShowFor installs inside your config/initializers has some configurations that allows you to change each piece of code it uses, for instance the label_tag, wrapper_tag, and default separator (ie br tag). Perhaps I missed explaining a bit about it in the post.
I think it should do the trick of overriding the :strong tag for :label for instance. Anyway, I agree label is "the name/title of the thing ahead" (I liked it =D).

@Alvaro a patch to add :attributes would be appreciated =). Thanks.</description>
		<content:encoded><![CDATA[<p>@Rafael really thanks for the tips. And we are going to take a look at the markup inside the comments <img src='http://blog.plataformatec.com.br/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .. </p>
<p>@Rafael and @Alvaro, the initializer ShowFor installs inside your config/initializers has some configurations that allows you to change each piece of code it uses, for instance the label_tag, wrapper_tag, and default separator (ie br tag). Perhaps I missed explaining a bit about it in the post.<br />
I think it should do the trick of overriding the :strong tag for :label for instance. Anyway, I agree label is &#8220;the name/title of the thing ahead&#8221; (I liked it =D).</p>
<p>@Alvaro a patch to add :attributes would be appreciated =). Thanks.</p>
<img src="http://feeds.feedburner.com/~r/PlataformaBlogComments/~4/peHDIydlZPI" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.plataformatec.com.br/2010/03/show-your-objects-baby/comment-page-1/#comment-522</feedburner:origLink></item>
	<item>
		<title>Comment on Show your objects baby! by Alvaro Pereyra (Yaraher)</title>
		<link>http://feedproxy.google.com/~r/PlataformaBlogComments/~3/CljUwOdKHTU/</link>
		<dc:creator>Alvaro Pereyra (Yaraher)</dc:creator>
		<pubDate>Wed, 10 Mar 2010 20:12:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.plataformatec.com.br/?p=817#comment-521</guid>
		<description>I'd agree with Rafael's comment. Why use strong instead of the proper (and dare I say, semantic) "label" tag?. 

Besides that, I like a lot. Feels "formtasticly" in spirit. Great work!

What about adding a attributes method? So your first example would become something like (using HAML to try to evade that markup eating of wordpress :P):

show_for @person do |p| 
  = p.attributes :first_name, :last_name, :confirmed?
  = p.attribute :created_at, :format =&gt; :short
  = p.attribute :age, :if_blank =&gt; "No age"</description>
		<content:encoded><![CDATA[<p>I&#8217;d agree with Rafael&#8217;s comment. Why use strong instead of the proper (and dare I say, semantic) &#8220;label&#8221; tag?. </p>
<p>Besides that, I like a lot. Feels &#8220;formtasticly&#8221; in spirit. Great work!</p>
<p>What about adding a attributes method? So your first example would become something like (using HAML to try to evade that markup eating of wordpress <img src='http://blog.plataformatec.com.br/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ):</p>
<p>show_for @person do |p|<br />
  = p.attributes :first_name, :last_name, :confirmed?<br />
  = p.attribute :created_at, :format =&gt; :short<br />
  = p.attribute :age, :if_blank =&gt; &#8220;No age&#8221;</p>
<img src="http://feeds.feedburner.com/~r/PlataformaBlogComments/~4/CljUwOdKHTU" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.plataformatec.com.br/2010/03/show-your-objects-baby/comment-page-1/#comment-521</feedburner:origLink></item>
</channel>
</rss>
