New inline RJS for rails
January 21st, 2006Sam 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.
Tweet