Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Rails 控制器,究竟是render (:update)为了什么?
render (:update)
是专门用于定义 RJS 内联还是有更多用途?
一般来说,这就是它的用途。当使用 ajax 调用方法并希望更新页面上的某些内容以让客户端知道发生了某些事情时,您会倾向于使用它。