Closed tyler-wel closed 11 months ago
Changing to Ruby 2.5.8
fixed the issue
I have hit the same issue with the missing ApplicationHelper
. Switching to Ruby 2.5.8
is not an option as it reached EOL. The proper solution is to generate app/helpers/application_helper.rb
Fixed in #674
Checklist
jets upgrade
command that makes this a simple task. There's also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/My Environment
Expected Behaviour
After generating a new project via
--mode job
, be able to then generate a mailer and send the mail via the consoleCurrent Behavior
ApplicationHelper
is not created with--mode job
and therefor creates an error when attempting to send a mail. See the error log below for more info.Step-by-step reproduction instructions
jets new mail_test --database=postgresql --mode job
jets generate mailer TestMailer test_mail
jets c
TestMailer::test_mail.deliver_now
Error Log
``` irb(main):006:0> TestMailer::test_mail.deliver_now D, [2021-01-18T16:02:30.892923 #75972] DEBUG -- : TestMailer#test_mail: processed outbound mail in 8.5ms Traceback (most recent call last): 16: from /.../.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/actionview-6.1.1/lib/action_view/lookup_context.rb:258:in `block in initialize_details' 15: from /.../.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/actionview-6.1.1/lib/action_view/lookup_context.rb:51:in `block inCode Sample
Nothing was changed from a freshly generated app.
Solution Suggestion
Generate the
ApplicationHelper
when generating with--mode job