You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expect to see scaffolded "Tests" page but actually get a "406 Not Acceptable" error:
ActionController::UnknownFormat (TestsController#index is missing a template for this request format and variant.
request.formats: ["text/html"]
request.variant: []):
Am I missing something obvious or doing something blatantly wrong?
If not, I'm happy to try and dig into this a little bit but I have no idea where to start so if anyone has some pointers on where to look I'd appreciate that. I did take a quick look at #1008 to see if that had any clues about how Haml works or what might need to change to support a new major version but I'm none the wiser.
The text was updated successfully, but these errors were encountered:
Good news, I was both missing something obvious and doing something blatantly wrong. HAML wasn't in the list of available variants because I hadn't restarted the server 🤦♂️
I can't get any views working on a brand new Rails 7 app (Rails 7.0.0.alpha2) with Haml (Haml 5.2.2) installed via haml-rails (2.0.1).
Steps to reproduce:
rails new myapp --database=postgresql --javascript esbuild --css tailwind
gem "haml-rails", "~> 2.0"
to Gemfile andbundle
rails haml:erb2haml
to migrate view templatesrails g scaffold test
andrails db:migrate
Expect to see scaffolded "Tests" page but actually get a "406 Not Acceptable" error:
Am I missing something obvious or doing something blatantly wrong?
If not, I'm happy to try and dig into this a little bit but I have no idea where to start so if anyone has some pointers on where to look I'd appreciate that. I did take a quick look at #1008 to see if that had any clues about how Haml works or what might need to change to support a new major version but I'm none the wiser.
The text was updated successfully, but these errors were encountered: