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
using System; | |
using System.Web.Mvc; | |
using RequireHttpsAttributeBase = System.Web.Mvc.RequireHttpsAttribute; | |
namespace AppHarbor.Web | |
{ | |
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, | |
AllowMultiple = false)] | |
public class RequireHttpsAttribute : RequireHttpsAttributeBase | |
{ |
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
var BetterNetbank = { | |
inject: function(table) { | |
if ($("#" + table).length > 0) { | |
$('#' + table + ' thead tr').prepend('<th>X</th>'); | |
$('#' + table + 'Body > tr').map(function() { | |
$(this).prepend('<td><input type="checkbox" /></td>'); | |
}); | |
} | |
} | |
} |
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_tag charges_path do | |
%article | |
%label{:class => "amount"} | |
%span Amount: $5.00 | |
= javascript_include_tag "https://checkout.stripe.com/v2/checkout.js", | |
:class => "stripe-button", | |
:"data-key" => "#{Rails.configuration.stripe[:publishable_key]}", | |
:"data-description" => "30-day free trial", |
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
# List of environments and their heroku git remotes (id: 'remote_name') | |
HEROKU_ENVIRONMENTS = { | |
staging: 'staging-remote-name', | |
production: 'production-remote-name' | |
} | |
namespace :deploy do | |
# Create rake tasks to deploy on Heroku environments | |
# $ rake -T deploy | |
# rake deploy:production # Deploy to production |