In config/production.rb
config.action_mailer.asset_host = "https://123123.cloudfront.net"
In config/initializers/mail_image_tag.rb
module ActionView
brew tap phinze/homebrew-cask | |
brew install brew-cask | |
brew cask install layervault |
NSString *pathToRelaunch = [host bundlePath]; | |
if ([[updater delegate] respondsToSelector:@selector(pathToRelaunchForUpdater:)]) | |
pathToRelaunch = [[updater delegate] pathToRelaunchForUpdater:updater]; | |
NSString *relaunchToolPath = [relaunchPath stringByAppendingPathComponent: @"/Contents/MacOS/finish_installation"]; | |
[NSTask launchedTaskWithLaunchPath: relaunchToolPath arguments:[NSArray arrayWithObjects:[host bundlePath], pathToRelaunch, [NSString stringWithFormat:@"%d", [[NSProcessInfo processInfo] processIdentifier]], tempDir, relaunch ? @"1" : @"0", nil]]; | |
[NSApp terminate:self]; |
In config/production.rb
config.action_mailer.asset_host = "https://123123.cloudfront.net"
In config/initializers/mail_image_tag.rb
module ActionView
class Array | |
def newest | |
records = self.select{ |e| e.kind_of? ActiveRecord::Base } | |
records.sort do |a, b| | |
a.created_at <=> b.created_at | |
end | |
records.last | |
end |
<div id="Placeholder"></div> | |
<script> | |
var myForm = new BLIP.Form({ | |
target: "Placeholder", | |
action: "/episodes", | |
method: "POST", | |
inputs: [ | |
{ | |
name: "email", |
<style> | |
.ProFeature { | |
display: none; | |
} | |
</style> | |
<form action="/episodes" method="POST" data-is-pro="<%= user.pro %>"> | |
<input type="email" name="email" /> | |
<input type="email" name="alternate_email" class="ProFeature" disabled /> | |
</form> |
var createMyWrappedInput = function (defaultValue) { | |
var wrapper = $("<div class='Wrapper'></div>"), | |
input = $('<input type="text" />'); | |
input.val(defaultValue); | |
wrapper.append(input); | |
return wrapper; | |
}; |
var createMyWrappedInput = function (defaultValue) { | |
return [ | |
'<div class="Wrapper">', | |
'<input type="text" value="' + defaultValue + '"/>', | |
'</div>' | |
].join(""); | |
}; |
var createMyWrappedInput = function (defaultValue) { | |
var wrappedInput = "<div class='Wrapper'>"; | |
wrappedInput += '<input type="text" value="' + defaultValue + '"/>'; | |
wrappedInput += '</div>'; | |
return wrappedInput; | |
}; |