Tag: ember

  • Ember.JS: How to handle invalid URLs

    There’s a lot of documentation for the new Ember Router. However, I found that no one was talking about how to handle the “*” route in Ember, i.e. the routes that don’t match anything. I first tried to look at the ApplicationRoute but that didn’t seem to throw anything. Ember just sits there with a…

  • Passing session keys in headers for Embjer.JS Data REST calls

    Passing session keys in headers for Embjer.JS Data REST calls

    First thing you have to do is to override the RESTAdapter if you aren’t already. The ajax function is the key. It is given the jQuery hash that will get passed down so all you have to do is to populate the beforeSend key with a function like below. The ‘xhr’ passed in can be…