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

Missing method and argument count errors #42

Open khash opened 12 months ago

khash commented 12 months ago

Following the exact installation flow in readme, the first error you'd encounter is undefined method 'subscribe!' for OnboardingDripper:Class (NoMethodError) when OnboardingDripper.subscribe!(self) is called (inside ::User). Looking at ApplicationDripper I can't see any subscribe! methods, but only subscribe.

After changing subscribe! to subscribe, you'd get a undefined methodonboarding_completed?'error on::User`

(which is clearly not defined in the app but there is no mention in the docs that it should, or shouldn't be defined, so you can imagine that it can be added to the 'User` class by the gem based on the campaign name)

The view helpers (unsubscribe URL, etc) also don't work as described, since they require arguments that are not passed by the mailer.

I have tried making various changes to make this work, based on that I can't see anyone else having such fundamental issues with the gem and therefore assumed it's something stupid I'm doing, with no luck.