Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
adds not and double optin
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian /bdougie/ Douglas committed Nov 30, 2014
1 parent 5ac48b0 commit 7ba271f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/subscribe_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ def create
@subscrition = Gibbon::API.new
@subscrition.lists.subscribe({
id: @list_id,
email: { email: subscribe_params[:email] }
}), :merge_vars => {:FNAME => 'Early Adopter'}, :double_optin => false})
email: { email: subscribe_params[:email] },
:merge_vars => {:FNAME => 'Early Adopter'}, :double_optin => true })

# TODO create a modal to enter their name.
# TODO create new list that does not require a name and delete :merge_vars, also create thank you page.
#
redirect_to_back
rescue Gibbon::MailChimpError => e
Expand Down

0 comments on commit 7ba271f

Please sign in to comment.