Skip to content

Tailwind breaks rails mailer generator for namespaced files #272

Closed
@trueinviso

Description

@trueinviso

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions