This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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] |
NewerOlder