Skip to content

Instantly share code, notes, and snippets.

Come Thou Fount of Every Blessing
Come Thou Fount of every blessing
Tune my heart to sing Thy grace;
Streams of mercy, never ceasing,
Call for songs of loudest praise
Teach me some melodious sonnet,
Sung by flaming tongues above.
Praise the mount! I’m fixed upon it,
Mount of God’s unchanging love.
NoMethodError: undefined method `slugs' for nil:NilClass
.bundle/ruby/1.9.1/gems/friendly_id-3.0.4/lib/friendly_id/active_record_adapter/slug.rb:42:in `enable_name_reversion'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:178:in `evaluate_method'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:166:in `call'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:93:in `block in run'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:92:in `each'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:92:in `run'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:276:in `run_callbacks'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/callbacks.rb:344:in `callback'
<form action="http://www.desiringgod.org/Store/donation_process/" method="post">
<div class="amount">
<h5 style="display:block;width:400px;margin:0 0 10px;">Select the amount of your monthly donation:</h5>
<input name="donation[9][amount]" value="5" type="radio" size="6" /> $5 per month
<br /><input name="donation[9][amount]" value="15" type="radio" size="6" /> $15 per month
<br /><input name="donation[9][amount]" value="25" type="radio" size="6" /> $25 per month
<br /><input name="donation[9][amount]" value="Other" type="radio" size="6" />
<span style="padding:0 3px 0 0;">$</span><input name="donation[9][amount_override]" value="" type="text" size="6" /> per month
<input type="hidden" name="donation&#91;9&#93;[recurring]" id="donation&#91;9&#93;[recurring]" value="1" />
</div>
hi
hi
hi
es:
languages:
en: "English"
es: "Spanish"
cn: "Chinese-Simplified"
prepositions:
by: "by"
prep_on: "on"
view:
will_paginate:
@benhutton
benhutton / spree_site.rb
Created March 1, 2011 21:43
How to fix spree's default engine
module SpreeSite
class Engine < Rails::Engine
def self.activate
# Add your custom site logic here
end
paths.config.routes = "lib/spree_blank.rb"
paths.config.initializers = "lib/spree_blank.rb"
config.to_prepare &method(:activate).to_proc
end
# This is the application's routes.rb: config/routes.rb
Dgnetwork::Application.routes.draw do
ActionDispatch::Routing::Mapper.send :include, SpreeCore::Routes
scope :path => 'store' do
match '/' => 'store#index', :as => 'store'
routes_for_spree
end
Dgnetwork::Application.routes.draw do
# Everything that would normally go in /, and that I would put in /store
routes_for_spree_store do
end
# Everything that would normally go in /admin
routes_for_spree_admin do
def backtrack(grid, row)
if matches?(grid, row)
if row == (grid.length - 1) # If we've matched everything!
return true
end
else
return false
end
for i = 0; i < grid.length, i++
{"UPS Ground"=>882,
"UPS Three-Day Select"=>1322,
"UPS Second Day Air"=>1780,
"UPS Next Day Air Saver"=>4238,
"UPS Next Day Air Early A.M."=>8125,
"UPS Next Day Air"=>4622}