rails-prelaunch-signup
rails-prelaunch-signup copied to clipboard
Not adding user to Mailchimp List
Cannot get application to add users to the Mailchimp List. I have configured heroku for api keys as instructed and have modified my .bashrc file.
I'm getting this same issue. Here's my server error:
Completed 500 Internal Server Error in 6ms
NoMethodError (undefined method include?' for nil:NilClass): app/models/user.rb:57:in
new'
app/models/user.rb:57:in add_user_to_mailchimp' app/controllers/registrations_controller.rb:6:in
create'
What do you get when you run heroku info --app <your-app-name>
?
Thanks for posting Paul, I forgot to update this. I found the line causing the error was this line in the app/model/user.rb file:
Rails.logger.info("MAILCHIMP SUBSCRIBE: result #{result.inspect} for #{self.email}")
Once I commented it out, no issues.
Ah, ok. So this was a different issue than the guy who posted below you. I wonder if he ever figured it out...
On Sat, Apr 6, 2013 at 1:53 PM, Ian Taylor [email protected] wrote:
Thanks for posting Paul, I forgot to update this. I found the line causing the error was this line in the app/model/user.rb file:
Rails.logger.info("MAILCHIMP SUBSCRIBE: result #{result.inspect} for #{self.email}")
Once I commented it out, no issues.
— Reply to this email directly or view it on GitHubhttps://github.com/RailsApps/rails-prelaunch-signup/issues/27#issuecomment-16003817 .