Skip to content

Instantly share code, notes, and snippets.

@Chandler
Last active December 20, 2015 21:39
Show Gist options
  • Save Chandler/6199002 to your computer and use it in GitHub Desktop.
Save Chandler/6199002 to your computer and use it in GitHub Desktop.
@resource 'organizations', path: "/orgs", ->
@resource 'show', path: ":organization_id", ->
@route 'settings'
visiting /orgs/17/settings renders 'settings' template into the outlet of the 'application' template.
I want it to render the templates into the outlets of the parents
settings -> show -> organizations -> application
@huafu
Copy link

huafu commented Aug 10, 2013

I'd do like that:

@resource 'organizations', path: 'orgs', ->
  @resource 'organization', path: ':organization_id', ->
    @route 'index'
    @route 'settings'

Template organisations contains {{outlet}} in witch organization will render and this last one can contain {{outlet}} in which organization/index and organization/settings would render

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