<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Kellogg Associates: Button Labels</title>
    <link>http://kellogg-assoc.com/articles/2006/10/23/button-labels</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Button Labels</title>
      <description>I checked in the button-labels plugin. I was frustrated when trying to create a form with multiple radio-buttons and no way to tell them apart. Basically, if the :label option is passed to radio_button, it calls content_tag() instead of tag() and uses the label as the content.
&lt;pre&gt;&lt;code&gt;
radio_button("post", "title", "Goodbye World", :label =&amp;gt; "Goodby World")

&amp;lt;input id="post_title_goodbye_world" 
     name="post[title]" 
     type="radio" 
     value="Goodbye World"&amp;gt;
  &amp;lt;label for="post_title_goodbye_world&amp;gt;
    Goodby World
  &amp;lt;/label&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;The plugin is managed on &lt;a href="http://rubyforge.org/projects/button-labels"&gt;ruby_forge&lt;/a&gt;.
&lt;a href="/rdoc/button_labels/index.html"&gt;Rdoc&lt;/a&gt; is available.&lt;/p&gt;


	&lt;p&gt;Entered some time ago as a bug &lt;a href="http://dev.rubyonrails.org/ticket/4627"&gt;#4627&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;Gregg Kellogg&lt;/p&gt;</description>
      <pubDate>Mon, 23 Oct 2006 21:22:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:287af437-6fd4-4fad-9e14-84b3e7a7e8d8</guid>
      <author>gregg@kellogg-assoc.com (Gregg Kellogg)</author>
      <link>http://kellogg-assoc.com/articles/2006/10/23/button-labels</link>
      <category>Ruby on Rails</category>
      <trackback:ping>http://kellogg-assoc.com/articles/trackback/5</trackback:ping>
    </item>
    <item>
      <title>"Button Labels" by Gregg Kellogg</title>
      <description>&lt;p&gt;It would be a simple extension to add this to other methods, such as input and select. However, the primary motivation for doing this for radio buttons and checklists is that they are are implemented using the tag() rather than content_tag() method (my change makes them content_tag if a label is specified). Given that select is based on content_tag, a the label can simply be added as part of the content. The input tag, however, is based on tag, and so could benefit from supporting a :label option. I just haven&amp;#8217;t found it necessary when creating forms.&lt;/p&gt;</description>
      <pubDate>Wed, 25 Apr 2007 16:36:41 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:f1c76eda-9853-4176-8659-d07ccce4e145</guid>
      <link>http://kellogg-assoc.com/articles/2006/10/23/button-labels#comment-28</link>
    </item>
    <item>
      <title>"Button Labels" by Jatinder Singh</title>
      <description>&lt;p&gt;Beautiful plugin. thanks!
one question: why did you not consider doing(labelling) similarly for input/select fields?&lt;/p&gt;</description>
      <pubDate>Fri, 06 Apr 2007 16:17:58 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:d22887d2-be8d-4232-9418-9c146a9719dd</guid>
      <link>http://kellogg-assoc.com/articles/2006/10/23/button-labels#comment-24</link>
    </item>
    <item>
      <title>"Button Labels" by Gregg Kellogg</title>
      <description>&lt;p&gt;Updated package to support labels for Check Boxes as well as Radio Buttons.&lt;/p&gt;</description>
      <pubDate>Wed, 21 Feb 2007 20:08:50 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:58130582-6fe5-4fc5-87fc-be1992fd87e7</guid>
      <link>http://kellogg-assoc.com/articles/2006/10/23/button-labels#comment-21</link>
    </item>
  </channel>
</rss>
