spree이있는 Ruby on Rails 응용 프로그램에 spree_chimpy
을 https://github.com/watg/spree_chimpy
에서 설치하고 있습니다. mailchimp 설정을 수행 한 후 오류를 일으키는 것으로 보이는 merge_vars
에 대한 메일 체포를 알립니다. 명령을 실행할 때spree_chimpy : merge_vars : 동기화 갈퀴가 중단되었습니다.
rake spree_chimpy:merge_vars:sync --trace
나는 "tag" must be 10 bytes and may only contain "A-Z 0-9 _
오류가 발생합니다. 나는이 오류를 이해하지 못한다. 구성에 변수 tag
을 추가 한 곳이 없다. 참고로, 내 config/initializers/spree_chimpy.rb
여기에 붙여 :
Spree::Chimpy.config do |config|
# your API key as provided by MailChimp
config.key = '<#my-api-hash-key>'
# extra api options for the Mailchimp gem
# config.api_options = { throws_exceptions: false, timeout: 3600 }
# name of your list, defaults to "Members"
config.list_name = 'test'
# Allow users to be subscribed by default. Defaults to false
# If you enable this option, it's strongly advised that your enable
# double_opt_in as well. Abusing this may cause Mailchimp to suspend your account.
# config.subscribed_by_default = false
# When double-opt is enabled, the user will receive an email
# asking to confirm their subscription. Defaults to false
config.double_opt_in = false
# id of your store. max 10 letters. defaults to "spree"
# config.store_id = 'acme'
# define a list of merge vars:
# - key: a unique name that mail chimp uses. 10 letters max
# - value: the name of any method on the user class.
# default is {'EMAIL' => :email}
config.merge_vars = {
'EMAIL' => :email,
'FNAME' => :fname,
'LNAME' => :lname,
'ORDERNUMBER' => :onumber
}
end