RT,或者怎么在CONTROLLER里调用JS的ALERT?
有个方法应该行的通,但是我这里没有环境,没办法测试[code="ruby"]respond_to do |format|format.html { render :text => "alert('demo')" }end[/code]