# How to add an Ember js helper?

**URL:** https://meta.discourse.org/t/how-to-add-an-ember-js-helper/40214
**Category:** Development
**Created:** [February 26, 2016, 6:37am UTC](https://meta.discourse.org/t/how-to-add-an-ember-js-helper/40214 "2016-02-26T06:37:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pdx](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@pdx](https://meta.discourse.org/u/pdx)
#### Post date: [February 26, 2016, 6:37am UTC](https://meta.discourse.org/t/how-to-add-an-ember-js-helper/40214/1 "2016-02-26T06:37:43Z")

</div>

I’m trying to add an emberjs helper to an existing plugin (discourse-tagging).

According to the ember docs, you should place a helper in app/helpers, and name it helper-name.js.

It can then be used like this: {{ helper-name value }} in templates.

However, no matter where I place the file it I get the error: “Uncaught Error: Assertion Failed: A helper named ‘helper-name’ could not be found”

I’ve tried these locations:  
app/helpers/  
assets/javacripts/discourse/helpers

Where should emberjs helpers be placed in plugins?

Thanks! 🙂

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [February 26, 2016, 5:30pm UTC](https://meta.discourse.org/t/how-to-add-an-ember-js-helper/40214/2 "2016-02-26T17:30:52Z")

</div>

In your plugin, you should add it in `assets/javascripts/discourse/helpers` and make sure it has a dash in the filename like `test-helper`.

I just tried this locally and the helper was registered. I see you tried that path and it did not. Perhaps you need to `rm -rf tmp` in development mode?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [February 26, 2016, 8:00pm UTC](https://meta.discourse.org/t/how-to-add-an-ember-js-helper/40214/3 "2016-02-26T20:00:43Z")

</div>


