Using newControllerPath() in the view throws "has no method 'urlFor'"

37 views
Skip to first unread message

hlandao

unread,
Jul 9, 2013, 6:47:56 AM7/9/13
to locomo...@googlegroups.com
Hello everyone,

I'm using the newControllerNamePath() method in one of my views and I'm getting the following error :

------------------------

500 TypeError: /Users/hlandao/development/repos/test-app/app/views/account/login_form.html.jade:13 11| 12| p > 13| a(href = newAccountPath()) Register Object #<Object> has no method 'urlFor'

  • 11|
  • 12| p
  • > 13| a(href = newAccountPath()) Register
  • Object # has no method 'urlFor'
  • at /usr/local/lib/node_modules/locomotive/lib/locomotive/route.js:110:17
  • at eval (eval at (/usr/local/lib/node_modules/jade/lib/jade.js:164:8))
  • at exports.compile (/usr/local/lib/node_modules/jade/lib/jade.js:165:35)
  • at Object.exports.render (/usr/local/lib/node_modules/jade/lib/jade.js:199:14)
  • at View.exports.renderFile [as engine] (/usr/local/lib/node_modules/jade/lib/jade.js:226:13)
  • at View.render (/usr/local/lib/node_modules/locomotive/node_modules/express/lib/view.js:76:8)
  • at Function.app.render (/usr/local/lib/node_modules/locomotive/node_modules/express/lib/application.js:505:10)
  • at ServerResponse.res.render (/usr/local/lib/node_modules/locomotive/node_modules/express/lib/response.js:756:7)
  • at Controller.render (/Users/hlandao/development/repos/test-app/node_modules/locomotive/lib/locomotive/controller.js:136:14)
  • at Controller.AccountController.loginForm (/Users/hlandao/development/repos/test-app/app/controllers/account_controller.js:48:8)
------------------------


does anyone know what is the problem ???

Thanks,
Hadar.

by...@tokbox.com

unread,
Feb 10, 2014, 12:01:34 PM2/10/14
to locomo...@googlegroups.com
Did this ever get resolved? I am having the same issue after upgrading to the latest version of jade.
Reply all
Reply to author
Forward
0 new messages