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
michaelmartinez in ~ | |
≥ sudo npm install jitsu -g 9:33 | |
Password: | |
npm http GET https://registry.npmjs.org/jitsu | |
npm http 200 https://registry.npmjs.org/jitsu | |
npm http GET https://registry.npmjs.org/jitsu/-/jitsu-0.8.4-1.tgz | |
npm http 200 https://registry.npmjs.org/jitsu/-/jitsu-0.8.4-1.tgz | |
npm ERR! error rolling back jitsu@0.8.4-1 Error: UNKNOWN, unknown error '/usr/local/lib/node_modules/jitsu/node_modules/require-analyzer/node_modules/npm/node_modules/fstream/examples/path/to' | |
npm ERR! Error: UNKNOWN, unknown error '/usr/local/lib/node_modules/jitsu/node_modules/require-analyzer/node_modules/npm/node_modules/fstream/examples/path/to' |
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
node.js:201 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error: Cannot find module './lib/abstract.js' | |
at Function._resolveFilename (module.js:332:11) | |
at Function._load (module.js:279:25) | |
at Module.require (module.js:354:17) | |
at require (module.js:370:17) | |
at Object.<anonymous> (/usr/local/lib/node_modules/jitsu/node_modules/require-analyzer/node_modules/npm/node_modules/fstream/fstream.js:1:82) | |
at Module._compile (module.js:441:26) |
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
/* The API controller | |
Exports 3 methods: | |
* post - Creates a new thread | |
* list - Returns a list of threads | |
* show - Displays a thread and its posts | |
*/ | |
var Thread = require('../models/thread.js'); | |
var Post = require('../models/post.js'); |
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
// dir= models/battalion | |
Battalion.hasMany(Unitnum, {as: 'unitnums', foreignKey: 'name'}); | |
Unitnum.belongsTo(Battalion, {as: 'battalion', foreignKey:'name'}); |
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='/javascripts/jquery-1.7.min.js') | |
link(rel='stylesheet', href='/stylesheets/bootstrap.min.css') | |
link(rel='stylesheet', href='/stylesheets/bootstrap-overrides.css') |
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
exports.routes = function ( map ) { | |
map.resources( 'units' ); | |
map.resources( 'stations', function ( station ) { | |
station.resources( 'units' ); | |
} ); | |
map.resources( 'battalions', function ( battalion ) { | |
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
michaelmartinez in ~ | |
≥ brew update 22:26 | |
error: The following untracked working tree files would be overwritten by merge: | |
Library/Formula/cocot.rb | |
Please move or remove them before you can merge. | |
Aborting | |
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master |
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
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/node-gyp requires mkdirp@'0.3.0' but will load | |
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/mkdirp, | |
npm WARN unmet dependency which is version 0.3.2 | |
npm WARN ___derby.npm * Unmet dependency in /usr/local/lib | |
npm WARN mocha * Unmet dependency in /usr/local/lib |
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
https://github.com/ryanb/cancan/issues/443 | |
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
CanCan is the cause for the first part | |
https://github.com/ryanb/cancan/issues/443 | |
http://stackoverflow.com/questions/7013192/routingerror-resulting-from-redirect-to-root-url-not-passing-action | |
Will_paginate is the second part | |
https://github.com/mislav/will_paginate/issues/174 |