#prescriptions_big_container #sidebar =render :partial => "admin/prescriptions/prescriptions" - if @prescription =render :partial => "show" -else #prescription_place :javascript function updatePrescriptions(){ $.ajax({url : "/admin/prescriptions.js"}); } setInterval( "updatePrescriptions()", 15000 ); set_prescriptions_big_container_size();