naspinski
naspinski

Reputation: 34717

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"

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?

enter image description here

Ruby 1.8.7 Rails 3.0.3

Upvotes: 5

Views: 11507

Answers (1)

Ben Lee
Ben Lee

Reputation: 53359

The name of your template file should be "settings.html.erb". You're missing an "e" in the file extension.

Note the part of the error where it says :handlers=>[:rxml, :erb, :builder, :rjs, :rhtml]. The file extension of your view must be one of these for the template to be processed.

Upvotes: 10

Related Questions