如何在我的控制器上的 ruby 中解决此错误“模板丢失”
class SayController < ApplicationController
def hello
@title = "Ruby on Rails"
@website = "www.9lessons.info"
end
end
我的html页面是
<html>
<head>
<title><%= @title %></title>
</head>
<body>
<h1>Welcome to <%= @website %></h1>
Addition : <%= 100 + 300 %>
</body>
</html>