How to reload a div using render(:update) and replace_html?

后端 未结 3 1965
臣服心动
臣服心动 2021-01-06 22:43

How to reload only the div id on a page? I just need to reload a certain div.

in my controller I have

def mycontrolleraction
 ...

 render(:update) d         


        
3条回答
  •  太阳男子
    2021-01-06 23:12

    use partials to update particular div in view

    render :partial => "fileame", :layout => false
    

提交回复
热议问题