在application.html.erb中:<title><%= yield(:title) %></title>
在view中:<% provide(:title, ‘XXXXX’) %>
[ruby on rails]添加网站title
猜你喜欢
转载自blog.csdn.net/qq_41037744/article/details/86761414
今日推荐
周排行