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
From 30ea36e6455dfca9c1a6bfed23be891b69756a13 Mon Sep 17 00:00:00 2001 | |
From: Kevin Ansfield <[email protected]> | |
Date: Sun, 5 Jul 2009 22:38:26 +0100 | |
Subject: [PATCH] allow users to reset forgotten passwords | |
--- | |
app/controllers/password_reset_controller.rb | 39 +++++++++ | |
app/helpers/password_reset_helper.rb | 2 + | |
app/models/notifier.rb | 12 +++ | |
app/models/user.rb | 5 + |
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
imac-home ~/code/rails/blah (master): jammit | |
/Library/Ruby/Gems/1.8/gems/jammit-0.4.1/lib/jammit/compressor.rb:27: undefined method `kilobytes' for 32:Fixnum (NoMethodError) | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' | |
from /Library/Ruby/Gems/1.8/gems/jammit-0.4.1/lib/jammit/dependencies.rb:19 | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' | |
from /Library/Ruby/Gems/1.8/gems/jammit-0.4.1/lib/jammit.rb:145 | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' |
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
imac-home ~/code/rails/3rdparty/subscriptions (master): rake spec | |
(in /Users/kev/code/rails/3rdparty/subscriptions) | |
.................................F.FF.........F.......F..........FF......................................................FF....................F..FFF.FFF.................................................. | |
1) | |
Mocha::ExpectationError in 'Subscription when charging should record the payment when charging paid accounts' | |
not all expectations were satisfied | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: [#<SubscriptionPayment:0x105e03188>].create(:amount => #<BigDecimal:0x105e2b188>, :transaction_id => '411', :account => #<Account:0x105e28f28>) | |
satisfied expectations: |
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
From d93c7bfe9250c66d8900fe7a2317156a97d85f0e Mon Sep 17 00:00:00 2001 | |
From: Kevin Ansfield <[email protected]> | |
Date: Fri, 12 Feb 2010 13:08:39 +0000 | |
Subject: [PATCH] initial no-subdomain changes as per http://groups.google.com/group/saas-rails-kit/browse_thread/thread/5746a767d96970f6/c4bda592db201e24?lnk=gst&q=Subdomain+#c4bda592db201e24 | |
--- | |
.gitignore | 1 + | |
app/controllers/sessions_controller.rb | 2 +- | |
app/models/account.rb | 21 ++------------------- | |
app/models/user.rb | 4 ++-- |
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
aasm (2.1.5, 2.1.4) | |
abstract (1.0.0) | |
acl9 (0.12.0) | |
actionmailer (3.0.0.beta, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.3.0, 2.2.2, 2.1.2, 1.3.6) | |
actionpack (3.0.0.beta, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.3.0, 2.2.2, 2.1.2, 1.13.6) | |
actionwebservice (1.2.6) | |
activemerchant (1.5.0, 1.4.2) | |
activemodel (3.0.0.beta) | |
activerecord (3.0.0.beta, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.3.0, 2.2.2, 2.1.2, 1.15.6) | |
activerecord-tableless (0.1.0) |
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
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('.temphol').hover(function() { | |
$(this).children('.front').stop().animate({ "top" : '105px'}, 500); | |
}, function() { | |
$(this).children('.front').stop().animate({ "top" : '7px'}, 300); | |
}); | |
}); | |
</script> |
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
%script(src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js") | |
%script(src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js") | |
:javascript | |
!window.jQuery && document.write('#{escape_javascript(javascript_include_tag 'jquery')}') |
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
require 'net/http' | |
require 'uri' | |
require 'heroku' | |
require 'heroku/command' | |
require 'heroku/commands/pgbackups' | |
require 'pgbackups/client' | |
namespace :backup do | |
def upload!(backup_url, s3_access_policy, object_prefix='') |
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
// get value of query parameter | |
// taken from http://stackoverflow.com/questions/2090551/parse-query-string-in-javascript | |
function getQueryVariable(variable) { | |
var query = window.location.search.substring(1); | |
var vars = query.split("&"); | |
for (var i = 0; i < vars.length; i++) { | |
var pair = vars[i].split("="); | |
if (pair[0] == variable) { | |
return pair[1]; | |
} |
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
# db/migrate/20111218135715_globalize_models.rb | |
class GlobalizeModels < ActiveRecord::Migration | |
def up | |
NewsItem.create_translation_table!( | |
{:title => :string, :body => :text}, | |
{:migrate_data => true} | |
) | |
end |
OlderNewer