简体   繁体   English

Ruby on Rails“模板丢失”错误

[英]Ruby on Rails “Template is missing” Error

I am getting the following error: 我收到以下错误:

Template is missing 模板丢失了

Missing template admin/settings with {:formats=>[:html], :locale=>[:en, :en], :handlers=>[:rxml, :erb, :builder, :rjs, :rhtml]} in view paths "C:/Users/Me/Desktop/Application/app/views" 缺少模板管理员/设置{{formats => [:html],:locale => [:en,:en],:handlers => [:rxml,:erb,:builder,:rjs,:rhtml]} in查看路径“C:/ Users / Me / Desktop / Application / app / views”

But everything seems to be in place. 但似乎一切都已到位。 I made sure the properties allow everyone full access to that file for troubleshooting, still a no go. 我确保这些属性允许每个人完全访问该文件以进行故障排除,但仍然不行。 What am I missing here? 我在这里错过了什么?

在此输入图像描述

Ruby 1.8.7 Rails 3.0.3 Ruby 1.8.7 Rails 3.0.3

The name of your template file should be "settings.html.erb". 模板文件的名称应为“settings.html.erb”。 You're missing an "e" in the file extension. 您在文件扩展名中缺少“e”。

Note the part of the error where it says :handlers=>[:rxml, :erb, :builder, :rjs, :rhtml] . 请注意错误的部分,其中包含:handlers=>[:rxml, :erb, :builder, :rjs, :rhtml] The file extension of your view must be one of these for the template to be processed. 视图的文件扩展名必须是要处理的模板之一。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM