$('#ajax-modal').html('<%= escape_javascript(render :partial => 'show') %>'); showModal('ajax-modal', '510px'); $('#ajax-modal').css('height','500px');