Model not yet available in setupController hook after ajax call


#1

Hello There

I am having quite a bit of trouble getting started with ember. Look at this case:

Clicking on the flims, loads the correct details about every film. http://jsbin.com/ewiN/16#/films

Directly accessing the filmdetails via url somehow doesn’t work. I haven’t been able to figure this out yet ( been trying 2 days) http://jsbin.com/ewiN/16#/films/tt0100669

When I comment out the setupController hook, the filmdetails are loaded when accessing via the url, but then, the links don’t work properly anymore.

Anyone can help me?


#2

This post pretty much answers my question.

But I am a bit unsure about how my setupController hook should be looking now, I’ll need to dig into this now…