Comments (7)
Hi @rafarosa92 could you please add more info about your setup? with only a exception trace is almost impossible to find the issue...
To be honest, I'm pretty sure this due to a misconfig or something on your app/side, because I use this gem in several Rails apps with 0 problems (Rails 4, 5 and 6; and Ruby 2.5 and 2.6) and we also have tests passing checking this part.
Remember, to call the rails bin, you should use always:
- or the bin/ prefix => bin/rails g maily:install
- or bundle exec => bundle exec rails g maily:install
from maily.
I'm using ruby 2.6.3 and rails 5.2.3, so add gem in my gemfile and run bundle install after rails g maily:install, like in redame!
But error persisted
from maily.
Could you please try one of these options:
- bin/rails g maily:install
- bundle exec rails g maily:install
as per my last comment?
from maily.
yes i'm try 2 commands
from maily.
@rafarosa92 Did it worked? I just tried it locally in a fresh Rails 5.2 app and it works perfectly...
from maily.
Please reopen in case you can still reproduce it and provide more info or a sample app. It worked for me in fresh Rails 5 and 6 apps.
from maily.
@markets I ran into this same issue and figured out a workaround. Maily.base_controller
, which is called at controllers/maily/application_controller.rb:2
, is set by Mail.init!
, which wasn't being called yet. I manually created the initializer, which contains a call to .setup
which in turn calls .init!
.
So I can't call rails g maily:install
until the initializer is present, and the initializer is supposed to be provided by the generate command.
I did try your recommendation to run binstubs n in bundler context first, they didn't work.
Rails: 7.0.3
Ruby: 3.1.2
from maily.
Related Issues (20)
- Email description - fetch from method comments
- Allow to hide emails
- Capture internal exceptions
- Lazy load hooks
- Engine doesn't render HOT 7
- Viewing an email gives undefined method `size' for nil:NilClass HOT 6
- Breaks if sass-rails is not present HOT 11
- Exception when running the install generator HOT 5
- Edit mail fails with slim as a template engine HOT 7
- Configured available locales not being picked up by maily HOT 3
- Inherited methods dont show on ui HOT 7
- Image as inline attachments not being showed HOT 10
- Email content rendered always as text HOT 4
- Arrays in arguments of mailer.register_hook is not supported HOT 1
- App fails to boot because Maily expects the asset pipeline to be present HOT 5
- Remove sass and move to plain css HOT 1
- Hide the email form if allow_delivery is false HOT 1
- Notify (via email) template changes to developer
- Allow to add multiple hooks/versions per mail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maily.