Attach a controller to route from a different namespace


#1

Can I attach a controller from a different namespace to a route?

E.g., I want to do -

Common.SomeController = Ember.Controller...

App.SomeRoute = Ember.Route.extend({
   renderTemplate: function() {
      this.render('sometemplate', {controller : 'Common.SomeController'});
   }
});

Is there any way to do this?

Basically the problem I am trying to solve is that we will have multiple “Single Page Applications” in the app depending on the rails route and I want to share controller code among them.

Thanks!