Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tailwind breaks rails mailer generator for namespaced files #272

Closed
trueinviso opened this issue Jun 27, 2023 · 2 comments · Fixed by #308
Closed

Tailwind breaks rails mailer generator for namespaced files #272

trueinviso opened this issue Jun 27, 2023 · 2 comments · Fixed by #308

Comments

@trueinviso
Copy link

trueinviso commented Jun 27, 2023

Rails 7.0.5.1

rails new mailer --css tailwind
cd mailer
rails g mailer admin/reservations_report send_csv

Generates error:

 create  app/mailers/admin/reservations_report_mailer.rb
 invoke  tailwindcss
 create    app/views/admin/reservations_report_mailer
 Could not find "layout.text.erb" in any of your source paths. Your current source paths are: 
 /Users/trueinviso/.rvm/gems/ruby-3.1.1/gems/tailwindcss-rails-2.0.29-arm64-darwin/lib/generators/tailwindcss/mailer/templates

Everything works as expected without the namespace, namespacing also works as expected in a new rails app without the tailwindcss-rails gem.

@freibuis
Copy link

freibuis commented Sep 6, 2023

I can confirm this also

work around is to make it with no namespace.. then modifier the file created with namespace details

@flavorjones
Copy link
Member

Proposed fix at #308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants