I am receiving an error when I try and run the application I am building with ruby on rails. I am getting the following error:
ActionController::MissingExactTemplate (TestController#index is missing a template for request formats: text/html):
class TestController < ApplicationController
def index
end
end
My route.rb file:
Rails.application.routes.draw do
get 'test/index'
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
root 'test#index'
end
My index file:
<h1>Test#index</h1>
<p>Find me in app/views/test/index.html.erb</p>
I can see all the files I am referring to but don't understand this error. Can anyone shed some light on why I am getting this error?
