app:template
did not install default component files correctly.
#38
Labels
question
Further information is requested
What did you do?
Ran
rails app:template LOCATION="https://railsbytes.com/script/zJosO5"
.What did you expect to happen?
For it to install the default component files so it can correctly generate
rails g view_component Example
later.What actually happened?
During installation, it failed to set the appropriate file extensions for
.haml
. Instead ofcomponent.html.haml
, it madecomponent.html.tt
. No errors were raised, leading to it not generating.haml
andpreview.rb
files duringrails g view_component Example
.Additional Context
This is not a fresh installation of ViewComponents, I had existing components already.
Environment
I am using HAML and esbuild.
Ruby Version:
ruby '3.2.0'
Framework Version (Rails, whatever):
rails 7.0.4
View Component Contrib Version:
"view_component-contrib", "~> 0.1.4"
The text was updated successfully, but these errors were encountered: