ghempton / ember-layout-example

Example application using ember-layout and ember-routemanager
http://codebrief.com
37 stars 5 forks source link

Error with ember 0.9.8.1: Object _ has no method 'setURL' #4

Open vitch opened 12 years ago

vitch commented 12 years ago

I am trying to use this code with the latest release of ember.js... I ran into a couple of problems that I worked around by also upgrading ember-layout and ember-routemanager to their latest versions. But I still get an error when navigating:

Object "FRAGMENT_YOU_NAVIGATED_TO" has no method 'setURL'

I've forked the repo and set up a branch where you can easily see the error:

https://github.com/vitch/ember-layout-example/tree/ember-0.9.8.1

I think the error is in ember-routemanager due to changes in ember. The location var is a string rather than a View by the time it reaches Ember.Routable.updateRoute - I'm just starting out with ember.js so I haven't been able to figure out why yet...

Any ideas?

vitch commented 12 years ago

I since read that ember has included code much like yours in the core with this release so I guess that is the reason for the problem. Would you recommend just using their code with 0.9.8.1? Thanks!