This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: | |
client_id: 3MVG9y6x0357Hled_U2KfYy5B0sKYjkty74JrJMU1sowOOLQiRJMrWx9dhd56oW2.c17Y7suukowsvVMVuZNd | |
client_secret: 5378400667687985858 | |
username: [email protected] | |
password: test123450sCk87wWyqDQB3DVb73Tv8gBt | |
production: | |
client_id: 3MVG9y6x0357Hled_U2KfYy5B0ung7ciEfE9zQgmkk9TP8giFDopRiBWYc2F68Ri21irzGvpM4eOM5cpvBxCb | |
client_secret: 836770708483988677 | |
username: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> options = YAML.load_file("#{RAILS_ROOT}/config/databasedotcom.yml") | |
ArgumentError: syntax error on line 1, col 11: ` client_id: 3MVG9y6x0357Hled_U2KfYy5B0sKYjkty74JrJMU1sowOOLQiRJMrWx9dhd56oW2.c17Y7suukowsvVMVuZNd' | |
from /Users/srulirapps/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/yaml.rb:133:in `load' | |
from /Users/srulirapps/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/yaml.rb:133:in `load' | |
from /Users/srulirapps/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/yaml.rb:144:in `load_file' | |
from /Users/srulirapps/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/yaml.rb:143:in `open' | |
from /Users/srulirapps/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/yaml.rb:143:in `load_file' | |
from (irb):2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def contact_klass | |
options = YAML.load_file("#{RAILS_ROOT}/config/databasedotcom.yml") | |
client = Databasedotcom::Client.new(options[Rails.env]) | |
client.authenticate(:token => token, :instance_url => instance_url) | |
client.materialize("Contact") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="main"> | |
<header> | |
<h2>Hi <%= current_user.first_name %><span class="subtle">!</span></h2> | |
</header> | |
<section class="mimi_voice_main"> | |
<div class="mimi_voice_content"> | |
<h4>Integrate Salesforce with Mad Mimi</h4> | |
<p>You already use Salesforce to manage all of your important customer and prospect data. Now unlock the power of that information with Mad Mimi. Welcome new clients, send promotions, or create a regular newsletter to keep your customers informed. Mad Mimi can do it all! It's time to send your Salesforce contacts a gorgeous Mad Mimi email!</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lists = [] | |
lists << @user.salesforce.audience_list if @user.subscribed_to?(RSalesforce.addon) && @user.salesforce | |
lists << @user.freshbooks.audience_list if @user.subscribed_to?(RFreshbooks.addon) && @user.freshbooks | |
lists << @user.batchbook.audience_list if @user.subscribed_to?(Batchbook.addon) && @user.batchbook | |
lists << @user.highrise.audience_list if @user.subscribed_to?(Highrise.addon) && @user.highrise | |
lists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COLUMN_TYPES = { | |
:name => column(with(/^name$/i), :transform => :split_name), | |
:email => column(with(/e\-?mail/i), :transform => :clean_email), | |
:first_name => column(with(/first/i)), | |
:last_name => column(with(/last/i)), | |
:phone => column(with(/phone/i)), | |
:company => column(with(/company/i)), | |
:title => column(with(/title/i)), | |
:address => column(with(/address/i), without(/e\-?mail/i)), | |
:city => column(with(/city|town/i)), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="http://localhost:3000/signups/subscribe/9" method="post" id="mad_mimi_signup_form" target="_blank"> | |
<fieldset> | |
<div class="mimi_field text email required"> | |
<label for="signup_email">Email</label> | |
<input id="signup_email" name="signup[email]" type="text" placeholder="[email protected]" class="required" /> | |
<div class="mimi_field_feedback"></div><span class="mimi_funk"></span> | |
</div> | |
<div class="mimi_field text"> | |
<label for="signup_first_name" id="wf_label">First Name</label> | |
<input id="signup_first_name" name="signup[first_name]" type="text" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="http://newsletter.arrondean.com/signups/subscribe/70507" method="post" id="mad_mimi_signup_form" target="_blank"> | |
<fieldset> | |
<div class="mimi_field text email required"> | |
<label for="signup_email">Email</label> | |
<input id="signup_email" name="signup[email]" type="text" placeholder="[email protected]" class="required"> | |
<div class="mimi_field_feedback"></div><span class="mimi_funk"></span> | |
</div> | |
<div class="mimi_field text"> | |
<label for="signup_name" id="wf_label">Name</label> | |
<input id="signup_name" name="signup[name]" type="text"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--<div class="check"> | |
<input id="list_646160" name="lists[]" value="646160" type="checkbox" checked="checked"> | |
<label for="list_646160">PA North Pittsburgh</label> | |
<span class="mimi_field_feedback"></span><span class="mimi_funk"></span> | |
</div> | |
<div class="check"> | |
<input id="list_646194" name="lists[]" value="646194" type="checkbox" checked="checked"> | |
<label for="list_646194">OH Mahoning County</label> | |
<span class="mimi_field_feedback"></span><span class="mimi_funk"></span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="http://localhost:3000/signups/subscribe/9" method="post" id="mad_mimi_signup_form" target="_blank"> | |
<fieldset> | |
<div class="mimi_field text email required"> | |
<label for="signup_email">Email</label> | |
<input id="signup_email" name="signup[email]" type="text" placeholder="[email protected]" class="required"> | |
<div class="mimi_field_feedback"></div><span class="mimi_funk"></span> | |
</div> | |
<div class="mimi_field text"> | |
<label for="signup_first_name" id="wf_label">First Name</label> | |
<input id="signup_first_name" name="signup[first_name]" type="text"> |
OlderNewer