<?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 for captured sparks</title>
	<atom:link href="http://capturedsparks.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://capturedsparks.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 30 Dec 2011 09:21:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Building a todo list with Rails 3 &#8211; Part Two by Sonya</title>
		<link>http://capturedsparks.com/2010/05/building-a-todo-list-with-rails-3-part-two/comment-page-1/#comment-7087</link>
		<dc:creator>Sonya</dc:creator>
		<pubDate>Fri, 30 Dec 2011 09:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://capturedsparks.com/?p=226#comment-7087</guid>
		<description>Hi Robin!  This is my first attempt at any rails code EVER!  I&#039;ve been following along quite smoothly until I hit the same error message as Ryan and Johnny.

.....   No route matches {:controller=&gt;&quot;tasks&quot;, :action=&gt;&quot;complete&quot;, :list_id=&gt;2, :id=&gt;nil}

I have rails v 3.1.3  Johnny posted a fix which I attempted to implement but it does not seem to work for me - the error message remains exactly the same.

Could Johnny perhaps have made an error in his post?  His fix for the ListController Show method doesn&#039;t seem to change your code in any way.

QUOTE:

   i changed my ListController show method from:

   def show
   @list = List.find(params[:id])
   @task = @list.tasks.new
   end

   to :

  def show
  @list = List.find(params[:id])
  @task = @list.tasks.new
  end

Those two bits seem to be identical?

Please help - I was so enjoying the tutorial and would love to complete it before my holiday is over :)

Thanks a million!</description>
		<content:encoded><![CDATA[<p>Hi Robin!  This is my first attempt at any rails code EVER!  I&#8217;ve been following along quite smoothly until I hit the same error message as Ryan and Johnny.</p>
<p>&#8230;..   No route matches {:controller=&gt;&#8221;tasks&#8221;, :action=&gt;&#8221;complete&#8221;, :list_id=&gt;2, :id=&gt;nil}</p>
<p>I have rails v 3.1.3  Johnny posted a fix which I attempted to implement but it does not seem to work for me &#8211; the error message remains exactly the same.</p>
<p>Could Johnny perhaps have made an error in his post?  His fix for the ListController Show method doesn&#8217;t seem to change your code in any way.</p>
<p>QUOTE:</p>
<p>   i changed my ListController show method from:</p>
<p>   def show<br />
   @list = List.find(params[:id])<br />
   @task = @list.tasks.new<br />
   end</p>
<p>   to :</p>
<p>  def show<br />
  @list = List.find(params[:id])<br />
  @task = @list.tasks.new<br />
  end</p>
<p>Those two bits seem to be identical?</p>
<p>Please help &#8211; I was so enjoying the tutorial and would love to complete it before my holiday is over <img src='http://capturedsparks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks a million!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Autocomplete with Rails and Prototype by Cumpanasu Florin</title>
		<link>http://capturedsparks.com/2009/11/autocomplete-with-rails-and-prototype/comment-page-1/#comment-7086</link>
		<dc:creator>Cumpanasu Florin</dc:creator>
		<pubDate>Thu, 10 Nov 2011 03:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://cs.local/?p=133#comment-7086</guid>
		<description>I try to create a autocomplete that folow the input cursor. Have somebody something styled like that?</description>
		<content:encoded><![CDATA[<p>I try to create a autocomplete that folow the input cursor. Have somebody something styled like that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building a todo list with Rails 3 &#8211; Part Two by Robin Fisher</title>
		<link>http://capturedsparks.com/2010/05/building-a-todo-list-with-rails-3-part-two/comment-page-1/#comment-7085</link>
		<dc:creator>Robin Fisher</dc:creator>
		<pubDate>Tue, 25 Oct 2011 08:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://capturedsparks.com/?p=226#comment-7085</guid>
		<description>Hi Johnny! Yes, does look like the new task is being appended to the list but because it&#039;s not been created, it doesn&#039;t have an id and that&#039;s why the error is thrown. It may have been a change in Rails that causes initialised but not created objects to be added to a collection.</description>
		<content:encoded><![CDATA[<p>Hi Johnny! Yes, does look like the new task is being appended to the list but because it&#8217;s not been created, it doesn&#8217;t have an id and that&#8217;s why the error is thrown. It may have been a change in Rails that causes initialised but not created objects to be added to a collection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building a todo list with Rails 3 &#8211; Part Two by Johnny</title>
		<link>http://capturedsparks.com/2010/05/building-a-todo-list-with-rails-3-part-two/comment-page-1/#comment-7083</link>
		<dc:creator>Johnny</dc:creator>
		<pubDate>Tue, 25 Oct 2011 06:40:37 +0000</pubDate>
		<guid isPermaLink="false">http://capturedsparks.com/?p=226#comment-7083</guid>
		<description>I was able to get the new task item on the show list page to work correctly for me:

i changed my ListController show method from:

  def show
    @list = List.find(params[:id])
    @task = @list.tasks.new
  end

to :

  def show
    @list = List.find(params[:id])
    @task = @list.tasks.new
  end

and my list/show page form from

form_for [@list, @task] do &#124;form&#124;

to :

form_for [@list, @list.tasks.new] do &#124;form&#124;

and boom! like magic. Any insights to why that might be happening?</description>
		<content:encoded><![CDATA[<p>I was able to get the new task item on the show list page to work correctly for me:</p>
<p>i changed my ListController show method from:</p>
<p>  def show<br />
    @list = List.find(params[:id])<br />
    @task = @list.tasks.new<br />
  end</p>
<p>to :</p>
<p>  def show<br />
    @list = List.find(params[:id])<br />
    @task = @list.tasks.new<br />
  end</p>
<p>and my list/show page form from</p>
<p>form_for [@list, @task] do |form|</p>
<p>to :</p>
<p>form_for [@list, @list.tasks.new] do |form|</p>
<p>and boom! like magic. Any insights to why that might be happening?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building a todo list with Rails 3 &#8211; Part Two by Johnny</title>
		<link>http://capturedsparks.com/2010/05/building-a-todo-list-with-rails-3-part-two/comment-page-1/#comment-7082</link>
		<dc:creator>Johnny</dc:creator>
		<pubDate>Tue, 25 Oct 2011 04:22:21 +0000</pubDate>
		<guid isPermaLink="false">http://capturedsparks.com/?p=226#comment-7082</guid>
		<description>I got the same error Ryan did. I think the problem is in the controller? (Disclosure: not a rails dev)

It seems the task created by:

  def show
    @list = List.find(params[:id])
    @task = @list.tasks.new
  end

is appended to the @list.tasks, and shows up as an extra list item task in the lists/show view?

I&#039;m on OSX Snow Leopard, Ruby 1.8.7, Rails 3.1.1 and followed the tutorial to a &quot;t&quot; (character by character, watched everything 3 times) could it be a version/gem idiosyncrasy somewhere?</description>
		<content:encoded><![CDATA[<p>I got the same error Ryan did. I think the problem is in the controller? (Disclosure: not a rails dev)</p>
<p>It seems the task created by:</p>
<p>  def show<br />
    @list = List.find(params[:id])<br />
    @task = @list.tasks.new<br />
  end</p>
<p>is appended to the @list.tasks, and shows up as an extra list item task in the lists/show view?</p>
<p>I&#8217;m on OSX Snow Leopard, Ruby 1.8.7, Rails 3.1.1 and followed the tutorial to a &#8220;t&#8221; (character by character, watched everything 3 times) could it be a version/gem idiosyncrasy somewhere?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building a todo list with Rails 3 &#8211; Part Two by Ryan</title>
		<link>http://capturedsparks.com/2010/05/building-a-todo-list-with-rails-3-part-two/comment-page-1/#comment-7081</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 15 Sep 2011 07:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://capturedsparks.com/?p=226#comment-7081</guid>
		<description>%= button_to &quot;Complete&quot;, complete_task_path(@list.id,task.id) %  - brackets are by % signs, not showing up though</description>
		<content:encoded><![CDATA[<p>%= button_to &#8220;Complete&#8221;, complete_task_path(@list.id,task.id) %  &#8211; brackets are by % signs, not showing up though</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building a todo list with Rails 3 &#8211; Part Two by Ryan</title>
		<link>http://capturedsparks.com/2010/05/building-a-todo-list-with-rails-3-part-two/comment-page-1/#comment-7080</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 15 Sep 2011 07:03:01 +0000</pubDate>
		<guid isPermaLink="false">http://capturedsparks.com/?p=226#comment-7080</guid>
		<description> Is my button code if that helps, it looks like it is all there to me, really confusing me!</description>
		<content:encoded><![CDATA[<p>Is my button code if that helps, it looks like it is all there to me, really confusing me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building a todo list with Rails 3 &#8211; Part Two by Robin Fisher</title>
		<link>http://capturedsparks.com/2010/05/building-a-todo-list-with-rails-3-part-two/comment-page-1/#comment-7079</link>
		<dc:creator>Robin Fisher</dc:creator>
		<pubDate>Thu, 15 Sep 2011 05:53:58 +0000</pubDate>
		<guid isPermaLink="false">http://capturedsparks.com/?p=226#comment-7079</guid>
		<description>It appears that the id for the task is not being passed in.  Your code should be:

complete_task_path(@list.id,task.id)

Are you passing the task.id into the link?  Note there is no @ symbol before it in this case.

Robin</description>
		<content:encoded><![CDATA[<p>It appears that the id for the task is not being passed in.  Your code should be:</p>
<p>complete_task_path(@list.id,task.id)</p>
<p>Are you passing the task.id into the link?  Note there is no @ symbol before it in this case.</p>
<p>Robin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building a todo list with Rails 3 &#8211; Part Two by Ryan</title>
		<link>http://capturedsparks.com/2010/05/building-a-todo-list-with-rails-3-part-two/comment-page-1/#comment-7078</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 15 Sep 2011 04:40:25 +0000</pubDate>
		<guid isPermaLink="false">http://capturedsparks.com/?p=226#comment-7078</guid>
		<description>Great tutorial!  Really learning a lot!  Just running into one thing -

in routes.rb I have: 

  resources :lists do
     resources :tasks
  end

  match &#039;lists/:list_id/tasks/:id/complete&#039; =&gt; &#039;tasks#complete&#039;, :as =&gt; :complete_task
  
  root :to=&gt; &quot;lists#index&quot;


But I get this error when trying to use the app:

No route matches {:list_id=&gt;1, :controller=&gt;&quot;tasks&quot;, :action=&gt;&quot;complete&quot;, :id=&gt;nil}

What did I screw up on?

Thanks</description>
		<content:encoded><![CDATA[<p>Great tutorial!  Really learning a lot!  Just running into one thing -</p>
<p>in routes.rb I have: </p>
<p>  resources :lists do<br />
     resources :tasks<br />
  end</p>
<p>  match &#8216;lists/:list_id/tasks/:id/complete&#8217; =&gt; &#8216;tasks#complete&#8217;, :as =&gt; :complete_task</p>
<p>  root :to=&gt; &#8220;lists#index&#8221;</p>
<p>But I get this error when trying to use the app:</p>
<p>No route matches {:list_id=&gt;1, :controller=&gt;&#8221;tasks&#8221;, :action=&gt;&#8221;complete&#8221;, :id=&gt;nil}</p>
<p>What did I screw up on?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building a todo list with Rails 3 &#8211; Part Two by Daniel Arzuaga</title>
		<link>http://capturedsparks.com/2010/05/building-a-todo-list-with-rails-3-part-two/comment-page-1/#comment-7077</link>
		<dc:creator>Daniel Arzuaga</dc:creator>
		<pubDate>Tue, 06 Sep 2011 15:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://capturedsparks.com/?p=226#comment-7077</guid>
		<description>Great tutorial Robin, you are a great teacher man.

I&#039;m pretty new to rails and i was able to understand everything and follow along with no problems.

Keep em coming</description>
		<content:encoded><![CDATA[<p>Great tutorial Robin, you are a great teacher man.</p>
<p>I&#8217;m pretty new to rails and i was able to understand everything and follow along with no problems.</p>
<p>Keep em coming</p>
]]></content:encoded>
	</item>
</channel>
</rss>

