Closed tamvm closed 10 years ago
Then I try to make posts/index.jade as simple as possible, the page say that:
Cannot GET /posts
while in config/routes.js, I declared map.resources("posts") already. It's so weird!
I am also getting same error following is the complete error log it seems their is some error in compoundjs module
500 TypeError: /home/hitesh/node/compoundjs/app/views/lists/index.jade:6 4| span.divider / 5| li.active > 6| != linkTo('lists', path_to.lists()) 7| 8| .page-header 9| h1 Index of lists Object #<Object> has no method 'tag'
4| span.divider /
5| li.active
> 6| != linkTo('lists', path_to.lists())
7|
8| .page-header
9| h1 Index of lists
Object # has no method 'tag'
at linkTo (/home/hitesh/node/compoundjs/node_modules/compound/lib/helpers.js:305:17)
at eval (eval at (/home/hitesh/node/compoundjs/node_modules/jade/lib/jade.js:152:8), :37:33)
at /home/hitesh/node/compoundjs/node_modules/jade/lib/jade.js:153:35
at Object.exports.render (/home/hitesh/node/compoundjs/node_modules/jade/lib/jade.js:197:10)
at Object.exports.renderFile (/home/hitesh/node/compoundjs/node_modules/jade/lib/jade.js:233:18)
at View.exports.renderFile [as engine] (/home/hitesh/node/compoundjs/node_modules/jade/lib/jade.js:218:21)
at View.render (/home/hitesh/node/compoundjs/node_modules/express/lib/view.js:76:8)
at Function.app.render (/home/hitesh/node/compoundjs/node_modules/express/lib/application.js:506:10)
at ServerResponse.res.render (/home/hitesh/node/compoundjs/node_modules/express/lib/response.js:803:7)
at Controller.renderView (/home/hitesh/node/compoundjs/node_modules/compound/lib/controller-extensions.js:154:18)
at Controller.render (/home/hitesh/node/compoundjs/node_modules/compound/lib/controller-extensions.js:79:10)
at action.title (eval at (/home/hitesh/node/compoundjs/node_modules/compound/node_modules/kontroller/lib/base.js:157:17), :49:28)
at /home/hitesh/node/compoundjs/node_modules/jugglingdb/lib/model.js:450:13
at /home/hitesh/node/compoundjs/node_modules/jugglingdb-mongodb/lib/mongodb.js:262:13
at /home/hitesh/node/compoundjs/node_modules/jugglingdb-mongodb/node_modules/mongodb/lib/mongodb/cursor.js:158:16
at commandHandler (/home/hitesh/node/compoundjs/node_modules/jugglingdb-mongodb/node_modules/mongodb/lib/mongodb/cursor.js:651:16)
at /home/hitesh/node/compoundjs/node_modules/jugglingdb-mongodb/node_modules/mongodb/lib/mongodb/db.js:1670:9
at Server.Base._callHandler (/home/hitesh/node/compoundjs/node_modules/jugglingdb-mongodb/node_modules/mongodb/lib/mongodb/connection/base.js:382:41)
at /home/hitesh/node/compoundjs/node_modules/jugglingdb-mongodb/node_modules/mongodb/lib/mongodb/connection/server.js:472:18
at MongoReply.parseBody (/home/hitesh/node/compoundjs/node_modules/jugglingdb-mongodb/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
at null. (/home/hitesh/node/compoundjs/node_modules/jugglingdb-mongodb/node_modules/mongodb/lib/mongodb/connection/server.js:430:20)
at EventEmitter.emit (events.js:95:17)
at null. (/home/hitesh/node/compoundjs/node_modules/jugglingdb-mongodb/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:191:13)
at EventEmitter.emit (events.js:98:17)
at Socket. (/home/hitesh/node/compoundjs/node_modules/jugglingdb-mongodb/node_modules/mongodb/lib/mongodb/connection/connection.js:384:22)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket. (_stream_readable.js:746:14)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:408:10)
at emitReadable (_stream_readable.js:404:5)
at readableAddChunk (_stream_readable.js:165:9)
at Socket.Readable.push (_stream_readable.js:127:10)
at TCP.onread (net.js:526:21)
same here. Any update?
fixed
Hi guys,
Good impression with compound and very be familiar with Rails guys like me. However, I have some trouble when do some experimental:
compound init todolist --coffee --css sass --tpl jade --db mongodb
compound g scaffold Post content --coffee --css sass -tpl jade
When I access posts/index, it raised exception:
What's that? Did I do something wrong? I think the problem may come from jade.