ember.js - Ember route not found -


I try to make a webpad with emberjs This app is a router:

  App.routor.map (function (this.route ("page"); this.route ("menu"); this.resource ('posts', '(' '' '' '' '' '' "" "" "" "Cat"); this.route ("photo");});   

and this is post-root:

  // Post JSON App.PostRoute = Ember.Route.extend ({Model: Functions (Parameters) {return Amber $. getJSON ('http://www.wilhelminaschool.eu/?json=get_post&post_id=' + params.post_id);}});   

But I did not find a way to post error

Error: Error: Prohibition failed: route post / 11330 not found

div class = "post-text" itemprop = "text">

app2 / #post /: post_id i.e. app2 / #post / 11330 , but when the post is processed within the source of /: post_id within the resource post , the link should be App2 / # / post /: post_id i.e ap2 / # / post / 11330

example,

< / p>

( Please see the URL during Navigating) )

If you need to work to link because they are, then the routes must be specified,

  This.resource ("post"); This.resource ("post", {path: "/ post /: post_id"});   



Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -