# change mirror to ubuntu.osuosl.org first
sudo apt-get update
sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev
(function($){ | |
// | |
//-------------------------------------- Model : Image | |
// | |
Image = Backbone.Model.extend({ | |
defaults: { | |
'delete' : false | |
} | |
}); | |
class AccountSignup | |
def self.new(warden, acccount_params) | |
account = Subscribem::Account.create(account_params) | |
account.create_schema | |
UserSignup.new(warden, account, account.owner) | |
end | |
end | |
Backbone.Model::nestCollection = (attributeName, nestedCollection) -> | |
#setup nested references | |
for item, i in nestedCollection | |
@attributes[attributeName][i] = nestedCollection.at(i).attributes | |
#create empty arrays if none | |
nestedCollection.bind 'add', (initiative) => | |
if !@get(attributeName) | |
@attributes[attributeName] = [] | |
@get(attributeName).push(initiative.attributes) |
function nestCollection(model, attributeName, nestedCollection) { | |
//setup nested references | |
for (var i = 0; i < nestedCollection.length; i++) { | |
model.attributes[attributeName][i] = nestedCollection.at(i).attributes; | |
} | |
//create empty arrays if none | |
nestedCollection.bind('add', function (initiative) { | |
if (!model.get(attributeName)) { | |
model.attributes[attributeName] = []; |
/*! | |
* jQuery JavaScript Library v1.7.2 | |
* http://jquery.com/ | |
* | |
* Copyright 2011, John Resig | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://jquery.org/license | |
* | |
* Includes Sizzle.js | |
* http://sizzlejs.com/ |
/*! | |
* jQuery JavaScript Library v1.7.2 | |
* http://jquery.com/ | |
* | |
* Copyright 2011, John Resig | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://jquery.org/license | |
* | |
* Includes Sizzle.js | |
* http://sizzlejs.com/ |
ruby-1.9.2-p290-patched :001 > act = Activity.create(:name => "exercise") | |
=> #<Activity _id: 4e9559899a4b7c3b7c000002, _type: nil, category_ids: [], slug: "exercise", name: "exercise"> | |
ruby-1.9.2-p290-patched :002 > act.translations | |
=> [#<Activity::Translation _id: 4e9559899a4b7c3b7c000001, _type: "Activity::Translation", locale: "en", name: "exercise">] | |
ruby-1.9.2-p290-patched :003 > act.reload | |
=> #<Activity _id: 4e9559899a4b7c3b7c000002, _type: nil, category_ids: [], slug: "exercise", name: "exercise"> | |
ruby-1.9.2-p290-patched :004 > act.delete | |
RuntimeError: can't modify frozen hash | |
from /Users/dbk/Development/mongoid_globalize/lib/mongoid_globalize/instance_methods.rb:18:in `merge!' | |
from /Users/dbk/Development/mongoid_globalize/lib/mongoid_globalize/instance_methods.rb:18:in `attributes' |
#= require jquery | |
#= require jquery_ujs | |
#= require lib/modernizr | |
#= require lib/jquery.lettering | |
#= require_tree . | |
$ -> | |
$('*[data-googlemap]').googleMap() | |
true |