Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An easy way to add subscribers to your mail chimp lists

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Manifest
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.