解决方法
如果找到该文件,它将被使用.
应用程序/视图/布局/ application.html.erb
<!doctype html> <html> <head> <!-- stuff --> </head> <body> <!-- this is where content will be rendered --> <%= yield %> </body> </html>
否则,您可以拨打其他电话.
# app/controllers/birds_controller.rb class BirdsController < ApplicationController layout :birds # looks for app/views/layouts/birds.html.erb # ... end