I am using RJS with Prototype. In my controller I have this code:
def method_name
    respo开发者_如何学编程nd_to do |format|
        ...
        format.html
        format.js
    end
en
Is it possible to force the "respond_do" to use the 'format.html' whether or no the request is HTML or JAVA? If so, how to do it?
Don't use respond_to. Just let the controller action return or call render if you want to specify a particular view.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论