新的 layout 里载入 application.html.erb(实验)
require './application.html.erb' 和 require_relative 'application.html.erb' 都不能用, 都是找不到。
require './application.html.erb'
require_relative 'application.html.erb'
出错信息: cannot load such file -- ./application.html.erb 要怎样才行?
cannot load such file -- ./application.html.erb
http://guides.rubyonrails.org/layouts_and_rendering.html#using-partials
通常的做法是把相同的部分抽离成 partial,然后按照 #1 楼 @huacnlee 说的文档去 render