Giter Club home page Giter Club logo

Comments (7)

markets avatar markets commented on June 6, 2024

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.

rafarosa92 avatar rafarosa92 commented on June 6, 2024

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.

markets avatar markets commented on June 6, 2024

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.

rafarosa92 avatar rafarosa92 commented on June 6, 2024

yes i'm try 2 commands

from maily.

markets avatar markets commented on June 6, 2024

@rafarosa92 Did it worked? I just tried it locally in a fresh Rails 5.2 app and it works perfectly...

from maily.

markets avatar markets commented on June 6, 2024

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.

dhnaranjo avatar dhnaranjo commented on June 6, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.