On Jul 21, 2015, at 6:17 PM, Travis Eubanks <lists@ruby-forum.com> wrote:
>
> gb.lists.subscribe({:id => ENV['mailchimp_id'],
> :email => {:email =>'address'}
> })
While I know nothing about that gem you're using, I suspect that it does not take a key and then use it to access params. So you're in effect trying to sign up with an address that is literally the string 'address'. Where the email address you obviously want to send to MailChimp is in params[:email][:address].
I'd also question whether the gem really wants an argument of the form :email => {:email => ...}, but I don't know that's wrong--something else for you to check.
--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/816EBEA6-2C60-4916-B4FD-D367F05AA940%40elevated-dev.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment