This post originated from an RSS feed registered with Java Buzz
by Kevin Dangoor.
Original Post: Nice additions to Rails' Ajax support
Feed Title: Blue Sky On Mars
Feed URL: http://www.blueskyonmars.com/feed/?cat=8%2C13%2C14
Feed Description: Kevin Dangoor's Weblog of Technology, Entertainment and Life - Java only feed. For all articles, check out http://www.blueskyonmars.com
Ruby on Rails 0.11.1 features some improvements to the Ajax support added in 0.11.
The Ajax wave is sweeping across Rails. In this release, weve added a :position option to both link_to_remote and form_remote_tag that can be set to either :before, :top, :bottom, or :after. These options make it possible to add new DOM elements to existing lists without replacing the whole list. When working on big lists that are in a fixed order anyway, theres a considerable speed increase to be had.
Nice! In my earlier post mentioning Ajax in Rails, I talked about Nevow's LivePage coming first. While that is true, and while it is also true (as far as I know) that Rails doesn't support LivePage's ability to call from server-to-client at will, it is cool to see new ease-of-use API ideas coming up.