Skip to content
An easy way to add subscribers to your mail chimp lists
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
Gemfile
Manifest
README.rdoc
Rakefile
mailchimp_subscriber.gemspec

README.rdoc

USAGE:

class User < ActiveRecord::Base
  subscribe_to "List Name", :using => { :api_key => MAILCHIMP_API_KEY,
                                        :email => :email, 
                                        :fields => {:FNAME => :first_name, :LNAME => :last_name}}
end

When User is saved, it will be added to your MailChimp list “List Name”.

This assumes that you have @user.email, @user.first_name, @user.last_name setup as your models attributes. MailChimp expects FNAME, and LNAME, you can also specify any custom fields and they will be captured.

When User is deleted it will automatically be unsubscribed from “List Name”.

REQUIREMENTS:

  • hominid gem

INSTALL:

gem 'hominid'
gem 'mailchimp_subscriber'

LICENSE:

BSD License

Something went wrong with that request. Please try again.