Thomas Fuchs
Hi, I'm Thomas Fuchs. I'm the author of Zepto.js, of script.aculo.us, and I'm a Ruby on Rails core alumnus. With Amy Hoy I'm building cheerful software, like Noko Time Tracking and Every Time Zone and write books like Retinafy.me.
   Want me to speak at your conference? Contact me!

New inline RJS for rails

January 21st, 2006

Sam doesn’t stop the goodness coming, now with the new inline RJS updates (from the CHANGELOG):

Add render :update for inline RJS. [Sam Stephenson] Example:


class UserController < ApplicationController
  def refresh
    render :update do |page|
      page.replace_html('user_list',
        :partial => 'user', :collection => @users)
      page.visual_effect :highlight, 'user_list'
    end
  end
end

Now, that’s very cool for those “quickie” 2 to 3 lines .rjs templates.

See the changeset for more info.