Skip to content

Instantly share code, notes, and snippets.

@SweeD
Last active December 12, 2015 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SweeD/4690290 to your computer and use it in GitHub Desktop.
Save SweeD/4690290 to your computer and use it in GitHub Desktop.
App.Router.map ->
@resource 'portal', ->
@route 'dashboard'
@resource 'developers', ->
@resource 'messages', ->
@route 'inbox'
@route 'hidden'
@resource 'sysops', ->
@resource 'messages', ->
@route 'inbox'
@route 'hidden'

I have a router like app_router.coffee

When i use the linkTo helper, i have to use (because of the routes)

{{#linkTo "messages.inbox"}}Inbox{{/linkTo}} .

When i only have this route once, there would be no problem, but what about this special case?

{{#linkTo "developers.messages.inbox"}}Inbox{{/linkTo}}

Doesn't work...

Also the Views called DevelopersMessagesInbox doesn't work, it do a lookup for MessagesInbox, which exists in both resources.

Is there a way to solve this?

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