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
When attempting to create a new Rails 8.0.2 application using Suspenders, the installation fails with an error indicating that action_mailer is an undefined method for the Rails Application Configuration object.
Steps to Reproduce:
Install Rails 8.0.2: gem install rails -v 8.0.2
Run the following command to create a new application:
Ruby version: 3.2.0
Rails version: 8.0.2
Suspenders: Latest version from main branch
Operating System: macOS
Analysis:
The error occurs during the suspenders:factories generator. This seems to be due to changes in Rails 8's configuration structure where action_mailer might need to be explicitly required or is accessed differently than in previous Rails versions.
The issue is likely in how Suspenders attempts to configure Action Mailer in the factories generator. Rails 8 has made architectural changes to how certain components are accessed or configured.
Possible Solutions:
Update the Suspenders generators to be compatible with Rails 8's configuration API
Add conditional logic to handle different Rails versions differently
Explicitly require action_mailer before attempting to configure it
Additional Information:
I also tried with Rails 8.0.0 and encountered the same error, indicating this is a general Rails 8 compatibility issue rather than a specific point release problem.
The text was updated successfully, but these errors were encountered:
When attempting to create a new Rails 8.0.2 application using Suspenders, the installation fails with an error indicating that action_mailer is an undefined method for the Rails Application Configuration object.
Steps to Reproduce:
Error Message:
Environment:
Ruby version: 3.2.0
Rails version: 8.0.2
Suspenders: Latest version from main branch
Operating System: macOS
Analysis:
The error occurs during the suspenders:factories generator. This seems to be due to changes in Rails 8's configuration structure where action_mailer might need to be explicitly required or is accessed differently than in previous Rails versions.
The issue is likely in how Suspenders attempts to configure Action Mailer in the factories generator. Rails 8 has made architectural changes to how certain components are accessed or configured.
Possible Solutions:
Update the Suspenders generators to be compatible with Rails 8's configuration API
Add conditional logic to handle different Rails versions differently
Explicitly require action_mailer before attempting to configure it
Additional Information:
I also tried with Rails 8.0.0 and encountered the same error, indicating this is a general Rails 8 compatibility issue rather than a specific point release problem.
The text was updated successfully, but these errors were encountered: