render :js => "jQuery.faceBox(#{...})"
仅显示实际调用的JavaScript:
try { jQuery.faceBox(...) } catch (e) { alert('RJS error:\n\n' + e.toString()); alert('jQuery.faceBox(\"<div class=\'error\'>Error</div>\")'); throw e; }
尝试
render :partial => "my_faceBox_popup"
然后在你的_my_faceBox_popup.html.erb局部放入你的代码:
<script type = "text/javascript"> ... </script>
调试firebug获得的任何错误.