<?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: Multiselect control in Rails with a Many to Many relationship</title>
	<atom:link href="http://blog.coryfoy.com/2008/02/multiselect-control-in-rails-with-a-many-to-many-relationship/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.coryfoy.com/2008/02/multiselect-control-in-rails-with-a-many-to-many-relationship/</link>
	<description>Agile Coaching, Ruby, .NET, Debugging, why not?</description>
	<lastBuildDate>Fri, 03 Sep 2010 01:46:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Family Sociology</title>
		<link>http://blog.coryfoy.com/2008/02/multiselect-control-in-rails-with-a-many-to-many-relationship/comment-page-1/#comment-1034</link>
		<dc:creator>Family Sociology</dc:creator>
		<pubDate>Tue, 23 Mar 2010 12:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=85#comment-1034</guid>
		<description>I just wanted to take a moment and let you know that I’ve been savouring reading your posts over the last few weeks. I have a website of my own, and would enjoy to switch links with you. If you’re interested just leave me a comment on my page or send me an e-mail with your details.</description>
		<content:encoded><![CDATA[<p>I just wanted to take a moment and let you know that I’ve been savouring reading your posts over the last few weeks. I have a website of my own, and would enjoy to switch links with you. If you’re interested just leave me a comment on my page or send me an e-mail with your details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry Polushkin</title>
		<link>http://blog.coryfoy.com/2008/02/multiselect-control-in-rails-with-a-many-to-many-relationship/comment-page-1/#comment-881</link>
		<dc:creator>Dmitry Polushkin</dc:creator>
		<pubDate>Sun, 15 Nov 2009 09:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=85#comment-881</guid>
		<description>Hi, you can change @restaurant.categories.collect { &#124;cat&#124; cat.id}) into @restaurant.category_ids. Also, I think it&#039;s better to assign this values to variables in controller. :)

Anyway thanks for this post.</description>
		<content:encoded><![CDATA[<p>Hi, you can change @restaurant.categories.collect { |cat| cat.id}) into @restaurant.category_ids. Also, I think it&#8217;s better to assign this values to variables in controller. :)</p>
<p>Anyway thanks for this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.coryfoy.com/2008/02/multiselect-control-in-rails-with-a-many-to-many-relationship/comment-page-1/#comment-81</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 22 Apr 2009 03:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=85#comment-81</guid>
		<description>I know, it&#039;s a 1y old post. Anyway i&#039;m sure a lot of visitors drop in this article so...&lt;br /&gt;&lt;br /&gt;@animeword&lt;br /&gt;In your create and update method change &quot;@params&quot; in &quot;params&quot; (no @ is needed)</description>
		<content:encoded><![CDATA[<p>I know, it&#8217;s a 1y old post. Anyway i&#8217;m sure a lot of visitors drop in this article so&#8230;</p>
<p>@animeword<br />In your create and update method change &#8220;@params&#8221; in &#8220;params&#8221; (no @ is needed)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Rekittke</title>
		<link>http://blog.coryfoy.com/2008/02/multiselect-control-in-rails-with-a-many-to-many-relationship/comment-page-1/#comment-82</link>
		<dc:creator>Thomas Rekittke</dc:creator>
		<pubDate>Sat, 04 Apr 2009 12:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=85#comment-82</guid>
		<description>Nice article. There is another way for multiselect (for has_many and habtm relationships) though - showing two select boxes, one for all available options and one for the selected options, and the opportunity to move options from one select box to the other. I call this SwapSelect and is described (incl. download) here: http://trendwork.kmf.de/175</description>
		<content:encoded><![CDATA[<p>Nice article. There is another way for multiselect (for has_many and habtm relationships) though &#8211; showing two select boxes, one for all available options and one for the selected options, and the opportunity to move options from one select box to the other. I call this SwapSelect and is described (incl. download) here: <a href="http://trendwork.kmf.de/175" rel="nofollow">http://trendwork.kmf.de/175</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: animeworld</title>
		<link>http://blog.coryfoy.com/2008/02/multiselect-control-in-rails-with-a-many-to-many-relationship/comment-page-1/#comment-83</link>
		<dc:creator>animeworld</dc:creator>
		<pubDate>Sat, 08 Nov 2008 09:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=85#comment-83</guid>
		<description>Hi folks!&lt;br /&gt;I got the following error:&lt;br /&gt;&lt;br /&gt;You have a nil object when you didn&#039;t expect it!&lt;br /&gt;You might have expected an instance of ActiveRecord::Base.&lt;br /&gt;The error occurred while evaluating nil.[]&lt;br /&gt;app/controllers/restaurants_controller.rb:44:in `create&#039;&lt;br /&gt;&lt;br /&gt;Parameters:&lt;br /&gt;&lt;br /&gt;{&quot;restaurant&quot;=&gt;{&quot;name&quot;=&gt;&quot;Restaurant do Leandro&quot;},&lt;br /&gt; &quot;commit&quot;=&gt;&quot;Create&quot;,&lt;br /&gt; &quot;authenticity_token&quot;=&gt;&quot;bdad0a7ac7b929c1200fc2e48f997f5e86eb87a1&quot;,&lt;br /&gt; &quot;category_ids&quot;=&gt;[&quot;1&quot;]}&lt;br /&gt;&lt;br /&gt;someone could help me?</description>
		<content:encoded><![CDATA[<p>Hi folks!<br />I got the following error:</p>
<p>You have a nil object when you didn&#39;t expect it!<br />You might have expected an instance of ActiveRecord::Base.<br />The error occurred while evaluating nil.[]<br />app/controllers/restaurants_controller.rb:44:in `create&#39;</p>
<p>Parameters:</p>
<p>{&quot;restaurant&quot;=>{&quot;name&quot;=>&quot;Restaurant do Leandro&quot;},<br /> &quot;commit&quot;=>&quot;Create&quot;,<br /> &quot;authenticity_token&quot;=>&quot;bdad0a7ac7b929c1200fc2e48f997f5e86eb87a1&quot;,<br /> &quot;category_ids&quot;=>[&quot;1&quot;]}</p>
<p>someone could help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://blog.coryfoy.com/2008/02/multiselect-control-in-rails-with-a-many-to-many-relationship/comment-page-1/#comment-84</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Mon, 24 Mar 2008 09:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=85#comment-84</guid>
		<description>Great little article! Helped me out, thanks!</description>
		<content:encoded><![CDATA[<p>Great little article! Helped me out, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory Foy</title>
		<link>http://blog.coryfoy.com/2008/02/multiselect-control-in-rails-with-a-many-to-many-relationship/comment-page-1/#comment-85</link>
		<dc:creator>Cory Foy</dc:creator>
		<pubDate>Fri, 15 Feb 2008 08:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=85#comment-85</guid>
		<description>Thanks Scott. The way to get around that would simply be to populate an @categories variable and an @selected_categories variable in the control that the view would use.&lt;br /&gt;&lt;br /&gt;Thanks for the reminder!</description>
		<content:encoded><![CDATA[<p>Thanks Scott. The way to get around that would simply be to populate an @categories variable and an @selected_categories variable in the control that the view would use.</p>
<p>Thanks for the reminder!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Bellware</title>
		<link>http://blog.coryfoy.com/2008/02/multiselect-control-in-rails-with-a-many-to-many-relationship/comment-page-1/#comment-86</link>
		<dc:creator>Scott Bellware</dc:creator>
		<pubDate>Fri, 15 Feb 2008 01:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=85#comment-86</guid>
		<description>Cory,&lt;br /&gt;&lt;br /&gt;It&#039;s usually considered bad practice to data access calls from the view.  It&#039;s much, much harder to document the data access through TDD specifications since some of the data access is in the view, and testing views requires a different kind of testing.</description>
		<content:encoded><![CDATA[<p>Cory,</p>
<p>It&#8217;s usually considered bad practice to data access calls from the view.  It&#8217;s much, much harder to document the data access through TDD specifications since some of the data access is in the view, and testing views requires a different kind of testing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
