【发布时间】:2013-12-17 16:36:29
【问题描述】:
我正在应用程序控制器类中编写一个方法
ApplicationController < ActionController::Base
protect_from_forgery
def refreshonline
end
end
并将视图放在 app/views/layout/refreshonline.html.erb 这个文件只包含简单的 html
但是当我运行这个方法时它给了我错误Missing template application/refreshonline with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in: * "D:/bitnami/test/projects/online/app/views"
所以我将我的 html 文件放在正确的位置或需要放在其他地方??
【问题讨论】: