DSL for Managing Mailchimp Subscriptions - use with monkey_party
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.document
.gitignore
LICENSE
README.rdoc
Rakefile

README.rdoc

monkey_party_attendee

create_table :users do |t|
  t.column :login, :string,  :null => false
  t.column :subscribes_to_site_news, :boolean, :default => true
  t.column :email, :string, :null => false
  t.column :sent_to_mailchimp_at, :datetime
  t.column :mailchimp_error, :string
  t.timestamps
end

class User < ActiveRecord::Base
  include MonkeyParty::Attendee

  define_monkey_party_subscription_to("users") do
    field :login
    field :subscribes_to_site_news, 
      :merge_field => "SITE_NEWS",
      :subscription_column => true

  end
end

Copyright

Copyright © 2009 Dan Pickett. See LICENSE for details.