新手问题 render 时 template 和 partial 有什么区别么?

msl12 · September 08, 2016 · Last by msl12 replied at September 09, 2016 · 2057 hits
<%= render partial: "home/show" %>
<%= render template: "home/show" %>

使用时发现两者没发现有什么不同,想问下,这两个有什么区别吗? 😃

#1 楼 @fumesy 原来如此,谢谢! 😄

msl12 closed this topic. 18 Sep 10:23
You need to Sign in before reply, if you don't have an account, please Sign up first.