Ember.JS 2 Upgrade: how to write helper without "module path" (DONE)


I’ve found this documentation about how to write helpers in Ember.JS 2.0: http://guides.emberjs.com/v2.1.0/templates/writing-helpers/

And I’m wondering how to write this without the “module path” using Ruby gem ember-rails but this does not work and throws exception “A helper named ‘format-currency’ could not be found”:

formatCurrencyHelper = Ember.Helper.helper(function(params) {
  return params[0];


The following is how this would work in globals mode:

App.EqHelper = Ember.Helper.helper(function(params) {
  return params[0] === params[1];

Demo: http://rwjblue.jsbin.com/yovuqo/edit?html,js,output


Thank you, it works!