1602/express-on-railway — Issue #113: Jade is not working
Author: activestylus
Created: 2012-02-03 19:36:02+00:00
State: open

I just updated railway from master (v 0.2.8) and tried the following:

```
railway init blog && cd blog
```
I edited npmfile.js like so

```
require('jade-ext');
```

Then in my environment,js:
```
app.set('view engine', 'jade');
```

I then ran:

```
npm install -l
mime@1.2.4 ./node_modules/mime
ejs-ext@0.0.8 ./node_modules/ejs-ext
qs@0.4.1 ./node_modules/qs
ejs@0.6.1 ./node_modules/ejs
sinon@1.3.1 ./node_modules/sinon
coffee-script@1.2.0 ./node_modules/coffee-script
express@2.5.6 ./node_modules/express
└── mkdirp@0.0.7
connect@1.8.5 ./node_modules/connect
└── formidable@1.0.8
nodeunit@0.6.4 ./node_modules/nodeunit
├── tap-assert@0.0.10
└── tap-producer@0.0.1
railway@0.2.9 ./node_modules/railway
├── yaml@0.2.3
├── jade-ext@0.0.5
├── railway-routes@0.0.4
└── jugglingdb@0.1.0

```

And built a basic scaffold with `railway generate crud post title content`

booted the server up, visited /posts/new and was greeted with

```
500 Error: Cannot find module 'jade'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at View.templateEngine (/Users/homebass/Desktop/Code/node/apps/blog/node_modules/express/lib/view/view.js:134:38)
at Function.compile (/Users/homebass/Desktop/Code/node/apps/blog/node_modules/express/lib/view.js:68:17)
at ServerResponse._render (/Users/homebass/Desktop/Code/node/apps/blog/node_modules/express/lib/view.js:417:18)
at ServerResponse.render (/Users/homebass/Desktop/Code/node/apps/blog/node_modules/express/lib/view.js:318:17)
at Object.render (/Users/homebass/Desktop/Code/node/apps/blog/node_modules/railway/lib/controller.js:404:19)
at Object. (/Users/homebass/Desktop/Code/node/apps/blog/app/controllers/posts_controller.js:8:5)
```