2

im wondering if anyone got something like this to work:

  @resources 'projects', ->
    @resources 'tables', ->
      @resources 'items'

with corresponding view content like:

%a{"data-bind" => "table.name", "data-route" => "routes.projects[project].tables[table]"}
  %div{"data-foreach-item" => "project.table.items"}
    %p{"data-bind" => item.name"}
    %a.btn{"data-route" => "routes.projects[project].tables[table].items[item]"} View details »

The Problem here is with the link tag:

Uncaught DevelopmentError: Couldn't find a route for the name items! 

But the name of the item in the p tag is displayed correctly. something is wrong with my routes. Has anyone an idea of multiple nested routes in BatmanJS ?

4

1 に答える 1

0

2 レベル以上の深さでは機能しないことを確認しました。2 つ以上のレベルを持つテストはないため、これは設計によるものである可能性があります。

于 2012-09-02T20:41:19.537 に答える