<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	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/"
		>
<channel>
	<title>Comments on: Simple non-model check box properties</title>
	<atom:link href="http://jonathanng.com/ruby-on-rails/simple-non-model-check-box-properties/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanng.com/ruby-on-rails/simple-non-model-check-box-properties/</link>
	<description>class AllYourCode &#60; Us</description>
	<lastBuildDate>Mon, 28 Jun 2010 23:07:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: bdeank</title>
		<link>http://jonathanng.com/ruby-on-rails/simple-non-model-check-box-properties/comment-page-1/#comment-705</link>
		<dc:creator>bdeank</dc:creator>
		<pubDate>Fri, 06 Mar 2009 23:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanng.com/?p=252#comment-705</guid>
		<description>It&#039;s easy to forget that you can use the stand-alone FormHelper methods when you are in model/attribute mode. Thanks for this. I just have one possibility to add:&lt;br&gt;&lt;br&gt;If you aren&#039;t using other &#039;overrides&#039;, you may as well use check_box_tag. This would clean up your code and give you extra flexibility when setting the check box initial value.&lt;br&gt;&lt;br&gt;# View&lt;br&gt;&lt;% form_for [:admin, @post] do &#124;f&#124; %&gt;&lt;br&gt;  ...&lt;br&gt;  &lt;p&gt;&lt;br&gt;    &lt;%= label_tag(:skip_queue, &#039;Skip queue&#039;) %&gt;&lt;br&gt;    &lt;%= check_box_tag(:skip_queue) %&gt;&lt;br&gt;  &lt;/p&gt;&lt;br&gt;  ...&lt;br&gt;&lt;% end %&gt;&lt;br&gt;&lt;br&gt;# Controller&lt;br&gt;# access the property&lt;br&gt;params[:skip_queue]</description>
		<content:encoded><![CDATA[<p>It&#39;s easy to forget that you can use the stand-alone FormHelper methods when you are in model/attribute mode. Thanks for this. I just have one possibility to add:</p>
<p>If you aren&#39;t using other &#39;overrides&#39;, you may as well use check_box_tag. This would clean up your code and give you extra flexibility when setting the check box initial value.</p>
<p># View<br />&lt;% form_for [:admin, @post] do |f| %&gt;<br />  &#8230;<br /> 
<p>    &lt;%= label_tag(:skip_queue, &#39;Skip queue&#39;) %&gt;<br />    &lt;%= check_box_tag(:skip_queue) %&gt;  </p>
<p>  &#8230;<br />&lt;% end %&gt;</p>
<p># Controller<br /># access the property<br />params[:skip_queue]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randy</title>
		<link>http://jonathanng.com/ruby-on-rails/simple-non-model-check-box-properties/comment-page-1/#comment-704</link>
		<dc:creator>Randy</dc:creator>
		<pubDate>Fri, 06 Mar 2009 13:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanng.com/?p=252#comment-704</guid>
		<description>Hey nice blog. I have one similiar. Would you be interested in exchanging blogroll links?</description>
		<content:encoded><![CDATA[<p>Hey nice blog. I have one similiar. Would you be interested in exchanging blogroll links?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
