ActionController::MissingExactTemplate
ActionController::MissingExactTemplate (Customer::TopController#index is missing a template for request formats: text/html):
I got this error. It's an error I sometimes see while developing with Rails. No suitable Template found. Error. Well let's deal with it as usual
I don't have a proper view for the controller action ... Let's check the action name of controller and the page name of view ... Did I make a mistake in the file name ...?
I'm not wrong. There is also a directory. Why?
Completed 406 Not Acceptable in 2ms Hmm? 406 error?
406 error I saw it for the first time
By the way, I used slim files instead of erb! Add the following to the Gemfile
gem "slim-rails"
gem "html2slim"
bundle install
Settled!! Missing Template comes out even in such a case. And I worshiped 406 error for the first time.
Solved safely for the time being
Recommended Posts