$("#user_brief_introduction_show").html("<%= escape_javascript render(:partial => "layouts/user_brief_introduction", :locals => {:user => @user}) %>"); $("#user_brief_introduction_show").show(); $("#user_brief_introduction_edit").hide(); autoUrl("user_brief_introduction_show");