Search code examples
ruby-on-railsruby-on-rails-plugins

Rails App Notification Plugins


Can anyone recommend some rails plugins that would allow me to register various notification against models that could be linked to a set of templates to format emails (and possibly other).

Ideally the plugin could be referenced in one line from each model and the notification format could be passes from some construct such as user preference etc..

Appreciate your help

Dom


Solution

  • observational is a nice way of... observing :)

    class Notifier < ActionMailer::Base
      observes :user, :after => :create, :invokes => :deliver_welcome_email
    
      def welcome_email(user)
      end
    end