Ember controller

Hi All,

I created a controller and added an action in it then i called it in my template {{action ‘nameOfTheAction’} }. But this error came out. what will be the fix?

“If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.”

Can you provide a JS Bin with the problem? Most of the time you’ll figure the answer out for yourself via the process of creating a Bin.

FYI: It doesnt bother me personally, but some will gripe that this question is probably more suited for Stack Overflow.

here:

http://emberjs.jsbin.com/xunedalayuke/1/

App.MyController needs to be App.IndexController and it works.

App.IndexController = Ember.Controller.extend({
  actions: {
    HeaderClicked: function (){
      alert('Hello World!');
    }
  }
});

Make sure you have a good grasp of the Naming Conventions.

I’d finally figured it out. Thank you so much! :slight_smile: