Render() in error action


#1

Hi, I am currently trying to render a popup from my ApplicationRoute’s error action in case authentication failed. If an error occurs in my route the error action correctly bubbles to the application’s error action but then nothing happens. If I instead trigger the error action manually with {{action 'error' ...}} everything works as expected.

App.ApplicationRoute = Ember.Route.extend(
{
    actions: {
        error: function(reason)
        {
            var response = reason.responseJSON;

            if(response.status == 401)
            {
                return this.render('Login',
                {
                    into: 'application',
                    outlet: 'modal'
                });
            }
        }
    }
}

Any ideas what the problem is?