viatropos/tower — Issue #13: Issues after scaffolding
Author: mcmullins
Created: 2012-02-29 00:26:52+00:00
State: open

if I create an app...
```
mcmullins@ubuntu:~/sites$ tower new test
info - socket.io started
create : test/.gitignore
create : test/.npmignore
create : test/.slugignore
create : test/Cakefile
etc...
```
and run it...
```
mcmullins@ubuntu:~/sites$ cd test
mcmullins@ubuntu:~/sites/test$ node server.js
info - socket.io started
[Wed, 29 Feb 2012 00:18:35 GMT] INFO Tower development server listening on port 3000
```
It works fine

But if I scaffold a model...

```
mcmullins@ubuntu:~/sites/test$ tower generate scaffold title:string body:text
info - socket.io started
create : app/models/title:string.coffee
create : app/views/title:strings
create : app/views/title:strings/_form.coffee
etc...
```

and then try it again...

```
mcmullins@ubuntu:~/sites/test$ node server.js
info - socket.io started

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: In /home/mcmullins/sites/test/app/helpers/title:stringHelper.coffee, Parse error on line 1: Unexpected '{'
at Object.parseError (/home/mcmullins/node_modules/tower/node_modules/coffee-script/lib/coffee-script/parser.js:470:11)
at Object.parse (/home/mcmullins/node_modules/tower/node_modules/coffee-script/lib/coffee-script/parser.js:546:22)
at /home/mcmullins/node_modules/tower/node_modules/coffee-script/lib/coffee-script/coffee-script.js:40:22
at Object..coffee (/home/mcmullins/node_modules/tower/node_modules/coffee-script/lib/coffee-script/coffee-script.js:18:17)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Test. (/home/mcmullins/node_modules/tower/lib/tower/application/server.js:139:25)
at Test.runCallbacks (/home/mcmullins/node_modules/tower/lib/tower/support/callbacks.js:46:20)
```
I get this error

Any thoughts?