Hi guys, The same functionality implemented on #509 (:as option to local var on partial) is not available on JavaScriptGenerator method insert_html/ replace_html. render :partial => ''exercises/_sortable_exercise'', :as => ''exercise'', :collection => @exercises Works! I get an ''exercise'' object, as expected. But... page.insert_html :bottom, "exercises", :partial => ''exercises/ _sortable_exercise'', :as => ''exercise'', :object => @exercise I still get the same ''sortable_exercise'' object instead of ''exercise''. Am I doing something wrong? Rgds, Wagner Narde --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---