joshmn / caffeinate

A Rails engine for drip campaigns/scheduled sequences and periodical support. Works with ActionMailer, and other things.
https://caffeinate.email
MIT License
345 stars 13 forks source link

Could not find generator 'caffeinate:install'. #10

Closed davidflores2 closed 3 years ago

davidflores2 commented 3 years ago

After bundling the gem into my rails 6.0.3 project, I try to run the generator and I'm getting this error Could not find generator 'caffeinate:install'. Any idea how to overcome it?

joshmn commented 3 years ago

Hi David,

So sorry I'm late, I didn't see this somehow!

Just tried on both 6.1 and 6.0.3:

➜  ctest git:(master) ✗ rails g caffeinate:install
      create  config/initializers/caffeinate.rb
      create  app/drippers/application_dripper.rb
      insert  config/routes.rb
      create  db/migrate/20210606180714_create_caffeinate_campaigns.rb
      create  db/migrate/20210606180715_create_caffeinate_campaign_subscriptions.rb
      create  db/migrate/20210606180716_create_caffeinate_mailings.rb
➜  ctest git:(master) ✗ rails -v
Rails 6.1.3.2
➜  ctest git:(master) ✗ rails g caffeinate:install
Running via Spring preloader in process 15889
      create  config/initializers/caffeinate.rb
      create  app/drippers/application_dripper.rb
      insert  config/routes.rb
      create  db/migrate/20210606180911_create_caffeinate_campaigns.rb
      create  db/migrate/20210606180912_create_caffeinate_campaign_subscriptions.rb
      create  db/migrate/20210606180913_create_caffeinate_mailings.rb
➜  ctest git:(master) ✗ rails -v
Rails 6.0.3.7

Can you provide the version of Caffeinate you have installed? cat Gemfile.lock | grep caffeinate should be enough for me to discern what's going on.