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
NoMethodError error for generated mailers with latest padrino 0.15.0 version #2232
Comments
I found this error is caused by sinatra/sinatra#1214 (so, you can avoid the error with Sinatra 2.0.x), especially the change of lib/sinatra/base.rb, which prevents Padrino::Mailer::Helpers::ClassMethods from being included. |
@aldentea thanks for pointing out at this line. Puh, bug is very old in Sinatra and merged only now. I will still do my debugging session and see how I can find the same place with vim :). The bad thing is, that we don't have any integration test for commands and starting the app. When we fix this issue, we need a new version of Padrino. |
This issue happens in the test suite of this repo, as well. This is from the latest master: https://travis-ci.org/github/padrino/padrino-framework/jobs/750293693
|
@nesquena I believe this can be closed, the breaking change in Sinatra was reverted. |
bug
What is the current behavior?
Create a new app:
padrino-gen project job-vacancy -d activerecord \ -t rspec \ -s jquery \ -e erb \ -a sqlite
Next generate a mailer:
And start the application:
will produce the following error:
What is the expected behavior?
That mailers are registered in the normal sinatra way.
Which versions of Ruby, Padrino, Sinatra, Rack, OS are you using? Did this work in previous versions?
Ruby: 2.7.1
OS: xubuntu 18.04
Padrino: 0.15.0
The text was updated successfully, but these errors were encountered: