AJAX on Rails guide

Does anyone know the current status of this guide? I was trying to use it and ran into problems with this example:

link_to_remote ``"Add new item"``,

``:url => items_url,

``:update => ``"item_list"``,

``:before => ``"$('progress').show()"``,

``:complete => ``"$('progress').hide()"``,

``:success => ``"display_item_added(request)"``,

``:failure => ``"display_error(request)"

Is this up to date? Are the guides tied to a particular Rails version? (I’m using 3.1) Thanks for the guide, it was helpful and I’d like to be able to contribute but I’m not too familiar with Rails.

I’m not entirely sure why that guide is still there - it’s not in the guide index. That’s certainly old information: link_to_remote was removed in 3.1.

I suspect that it’s a guide that’s in the process of being rewritten but is still being indexed by Google.

It’s indeed been rewritten and I think is visible on the edgeguides.rubyonrails.org site.

The guide at http://edgeguides.rubyonrails.org/ajax_on_rails.html is
out of date. It still refers to link_to_remote.

I am going to remove obsolete guides soon, thanks.

@xavier - when?

I think we (or it just may be me) patch up the guide. It’s outdated, but still valuable.

Any takers?

This particular guide has been totally rewritten by Steve and will be phisically removed.

In the docs server, more generally, WIP guides will be no longer generated because Google indexes them even if they are not included in the ToC, and people find them.

http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html is the new rewritten version.

Done, that draft is no longer reachable.