remote botton_to is not working
In the index page, i have code
        <%= button_to "Edit User Info", 
                      :method => :edit_user_info,
                      :remote => true  
        %>
in the controller, i am testing it for printing a log message, but it didnt work for me
def edit开发者_StackOverflow中文版_user_info
    logger.debug "===========================2"
    redirect_to my_account_path
end
so, how can i fix it...thx
The :method attribute takes a symbol of a HTTP verb such as get, post, put or delete, not a controller action. If you want to call a specific action within a controller, you could use the :action attribute (and possibly the :controller attribute as well).
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论