nettuts tutorial — error from `geddy resource todo` #276

Closed
case opened this Issue Nov 29, 2012 · 2 comments

Projects

None yet

2 participants

case commented Nov 29, 2012

Hi there,

I'm going through your nettuts tutorial and am seeing the following:

$ geddy resource todo
[Added] app/models/todo.js

/{path-to-my-geddy-app}/app/models/todo.js:4
    : {type: '', required: true},
    ^
jake aborted.
SyntaxError: Unexpected token :
    at Module._compile (module.js:437:25)
(See full trace by running task with --trace)

When I run the same command with --trace I get another error:

geddy resource todo --trace

/usr/local/share/npm/lib/node_modules/geddy/lib/parseopts.js:107
        } else throw new Error('Unknown option "' + arg + '"');
                     ^
Error: Unknown option "--trace"
    at parse (/usr/local/share/npm/lib/node_modules/geddy/lib/parseopts.js:107:22)
    at Object.<anonymous> (/usr/local/share/npm/lib/node_modules/geddy/bin/cli.js:102:8)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

Just wondering if I'm doing something wrong, or if the tutorial is out of date, etc. I've got geddy version 0.6.14.

Thanks,
-Eric

Contributor

Hey there Eric!

We had a similar issue a while back that was fixed in commit 7609a49 but it seems I completely forgot to update the resources templates.

Also I believe the Nettuts tutorial is out of date, a more up do date tutorial can be found at http://geddyjs.org/tutorial

Contributor

An update, yesterday we cherry-picked the fixing commit to the 0.6 release branch and updated NPM so if you update Geddy through NPM you'll get the fix.

If you have any other question don't hesitate to ask! You can make issues here, we also have a Google Group http://groups.google.com/group/geddyjs, and finally we have an IRC channel called #geddy on freenode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment