3
votes

I am getting uncaught error when using map() method on router. Any ideas ??

App.Router.map(function(match) {
        match('/').to('index');
        match('/models').to('models');
    });

Error:: Ember JS :: Uncaught TypeError: Object App.Router has no method 'map'

Ember Version : http://cloud.github.com/downloads/emberjs/ember.js/ember-latest.js

1
which version of Ember you are using?Manoharan
i am using ember-1.0.0-pre.2.jsjumlk
Router.map is something related to new router. Not in 1.0.0-pre.2.Manoharan
i see , any idea how can i get latest build for ember.js ? Cant find a link on ember site.jumlk
i have tried with cloud.github.com/downloads/emberjs/ember.js/ember-latest.js, but still the samejumlk

1 Answers

2
votes

Bit tricky to find the upadate on the official github. You can get a copy of it here though:

https://github.com/sh4n3d4v15/ember-todos/blob/master/app/scripts/vendor/ember.js