<?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: Beginners guide to Jquery + Ruby On Rails</title>
	<atom:link href="http://www.notgeeklycorrect.com/english/2009/05/18/beginners-guide-to-jquery-ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.notgeeklycorrect.com/english/2009/05/18/beginners-guide-to-jquery-ruby-on-rails/</link>
	<description>Blog of a freelance web developer</description>
	<lastBuildDate>Tue, 09 Mar 2010 20:03:26 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nicolas</title>
		<link>http://www.notgeeklycorrect.com/english/2009/05/18/beginners-guide-to-jquery-ruby-on-rails/comment-page-1/#comment-566</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Tue, 09 Mar 2010 20:03:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.notgeeklycorrect.com/?p=372#comment-566</guid>
		<description>You can do something like 

repond_to &#124;format&#124; do
  if @myvar.save
    format.js ......
  else
    format.js { render :layout =&gt; false, :partial =&gt; &quot;error&quot; }
  end
end

I think it should work perfectly.</description>
		<content:encoded><![CDATA[<p>You can do something like </p>
<p>repond_to |format| do<br />
  if @myvar.save<br />
    format.js &#8230;&#8230;<br />
  else<br />
    format.js { render :layout =&gt; false, :partial =&gt; &#8220;error&#8221; }<br />
  end<br />
end</p>
<p>I think it should work perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas</title>
		<link>http://www.notgeeklycorrect.com/english/2009/05/18/beginners-guide-to-jquery-ruby-on-rails/comment-page-1/#comment-565</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Tue, 09 Mar 2010 19:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.notgeeklycorrect.com/?p=372#comment-565</guid>
		<description>Hi Nellboy, thanks for the comment.

I think you problem can be corrected by calling ajax_link:

1. On page load (as in tutorial)
2. On your javascript page load (exemple at the end of new.js.erb).</description>
		<content:encoded><![CDATA[<p>Hi Nellboy, thanks for the comment.</p>
<p>I think you problem can be corrected by calling ajax_link:</p>
<p>1. On page load (as in tutorial)<br />
2. On your javascript page load (exemple at the end of new.js.erb).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.notgeeklycorrect.com/english/2009/05/18/beginners-guide-to-jquery-ruby-on-rails/comment-page-1/#comment-564</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 09 Mar 2010 17:19:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.notgeeklycorrect.com/?p=372#comment-564</guid>
		<description>This works great, but I (of course) have some questions I&#039;m hoping you can help with. 

How do you handle the error callback? I have some cases where if the action sees something wrong, or the save fails, I&#039;d like to have a callback [action]_error.js.erb or something similar that can report to the user what happened, with the current implementation it always calls the callback, regardless of success/fail (as far as I can see). I&#039;d like to be able to call &#039;return false&#039; in my action, and have the error callback fired, rather than the success.</description>
		<content:encoded><![CDATA[<p>This works great, but I (of course) have some questions I&#8217;m hoping you can help with. </p>
<p>How do you handle the error callback? I have some cases where if the action sees something wrong, or the save fails, I&#8217;d like to have a callback [action]_error.js.erb or something similar that can report to the user what happened, with the current implementation it always calls the callback, regardless of success/fail (as far as I can see). I&#8217;d like to be able to call &#8216;return false&#8217; in my action, and have the error callback fired, rather than the success.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nellboy</title>
		<link>http://www.notgeeklycorrect.com/english/2009/05/18/beginners-guide-to-jquery-ruby-on-rails/comment-page-1/#comment-560</link>
		<dc:creator>Nellboy</dc:creator>
		<pubDate>Sat, 27 Feb 2010 10:02:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.notgeeklycorrect.com/?p=372#comment-560</guid>
		<description>Hi Nicolas

really big thanks for posting this.  It has been a huge help and has significantly lowered the entry barrier for using jquery effectively with Rails.  Very well explained, and easy to understand.

I have one question if you have time.  I&#039;m running into problems when making AJAX calls from within divs and partials that are shown by other AJAX calls.

Is there a particular reason for this?  I&#039;m struggling to understand why this might happen in this way.

cheers!

Paul</description>
		<content:encoded><![CDATA[<p>Hi Nicolas</p>
<p>really big thanks for posting this.  It has been a huge help and has significantly lowered the entry barrier for using jquery effectively with Rails.  Very well explained, and easy to understand.</p>
<p>I have one question if you have time.  I&#8217;m running into problems when making <acronym title="Asynchronous JavaScript and XML">AJAX</acronym> calls from within divs and partials that are shown by other <acronym title="Asynchronous JavaScript and XML">AJAX</acronym> calls.</p>
<p>Is there a particular reason for this?  I&#8217;m struggling to understand why this might happen in this way.</p>
<p>cheers!</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: violet313</title>
		<link>http://www.notgeeklycorrect.com/english/2009/05/18/beginners-guide-to-jquery-ruby-on-rails/comment-page-1/#comment-557</link>
		<dc:creator>violet313</dc:creator>
		<pubDate>Fri, 19 Feb 2010 20:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.notgeeklycorrect.com/?p=372#comment-557</guid>
		<description>nice1 Nico ;)
works a charm!

[quote]
@Simon, you’re right, Ryan screencast are really simple and an amazing source of inspiration. I’m sad that you found this tutorial hard to follow. Please let me know if I can help.
[unquote]

hey there&#039;s nothing wrong with ur tutorial! -the railscast /does/ fill in the gaps 4 us newbs who want2 understand it -but thx2simon it&#039;s now referenced in the comments so np =)</description>
		<content:encoded><![CDATA[<p>nice1 Nico <img src='http://www.notgeeklycorrect.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
works a charm!</p>
<p>[quote]<br />
@Simon, you’re right, Ryan screencast are really simple and an amazing source of inspiration. I’m sad that you found this tutorial hard to follow. Please let me know if I can help.<br />
[unquote]</p>
<p>hey there&#8217;s nothing wrong with ur tutorial! -the railscast /does/ fill in the gaps 4 us newbs who want2 understand it -but thx2simon it&#8217;s now referenced in the comments so np =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.notgeeklycorrect.com/english/2009/05/18/beginners-guide-to-jquery-ruby-on-rails/comment-page-1/#comment-551</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 04 Feb 2010 06:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.notgeeklycorrect.com/?p=372#comment-551</guid>
		<description>Fixed my issue, its a bug with firefox 3.5 :/</description>
		<content:encoded><![CDATA[<p>Fixed my issue, its a bug with firefox 3.5 :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.notgeeklycorrect.com/english/2009/05/18/beginners-guide-to-jquery-ruby-on-rails/comment-page-1/#comment-550</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 04 Feb 2010 04:34:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.notgeeklycorrect.com/?p=372#comment-550</guid>
		<description>Your application.js is great, I have implemented and will be cleaning mine out to accommodate yours!

I have a question though, I am getting a 406 Not acceptable error when clicking a link with a put class.. Any idea why this could be?</description>
		<content:encoded><![CDATA[<p>Your application.js is great, I have implemented and will be cleaning mine out to accommodate yours!</p>
<p>I have a question though, I am getting a 406 Not acceptable error when clicking a link with a put class.. Any idea why this could be?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas</title>
		<link>http://www.notgeeklycorrect.com/english/2009/05/18/beginners-guide-to-jquery-ruby-on-rails/comment-page-1/#comment-505</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Fri, 06 Nov 2009 10:26:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.notgeeklycorrect.com/?p=372#comment-505</guid>
		<description>What you can do is reload your pagination div in the delete.js.erb. Can you share part of your code if I can help? (nicolas.alpi on gmail.com / gtalk)</description>
		<content:encoded><![CDATA[<p>What you can do is reload your pagination div in the delete.js.erb. Can you share part of your code if I can help? (nicolas.alpi on gmail.com / gtalk)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edward</title>
		<link>http://www.notgeeklycorrect.com/english/2009/05/18/beginners-guide-to-jquery-ruby-on-rails/comment-page-1/#comment-503</link>
		<dc:creator>Edward</dc:creator>
		<pubDate>Thu, 05 Nov 2009 19:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.notgeeklycorrect.com/?p=372#comment-503</guid>
		<description>This is great  works like a charm except when i use destroy in a list using Ryan Bates will paginate with ajax code.  Once i desroy a post all the pagination links have the destroyed post_id attached to the uri and it throws off the pagination because it can no longer find a post with that id.  Any ideas of how to reset the uri after a destroy</description>
		<content:encoded><![CDATA[<p>This is great  works like a charm except when i use destroy in a list using Ryan Bates will paginate with ajax code.  Once i desroy a post all the pagination links have the destroyed post_id attached to the uri and it throws off the pagination because it can no longer find a post with that id.  Any ideas of how to reset the uri after a destroy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas</title>
		<link>http://www.notgeeklycorrect.com/english/2009/05/18/beginners-guide-to-jquery-ruby-on-rails/comment-page-1/#comment-386</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Wed, 14 Oct 2009 09:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.notgeeklycorrect.com/?p=372#comment-386</guid>
		<description>@Simon, you&#039;re right, Ryan screencast are really simple and an amazing source of inspiration. I&#039;m sad that you found this tutorial hard to follow. Please let me know if I can help.</description>
		<content:encoded><![CDATA[<p>@Simon, you&#8217;re right, Ryan screencast are really simple and an amazing source of inspiration. I&#8217;m sad that you found this tutorial hard to follow. Please let me know if I can help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
