Posts = postsToRender Which one do you call .html.erb?

This is an Ember handlebars template referencing an Ember Component and nothing to do with Ruby at this point.

You might be best to start mugging up on how Ember works.

Ruby is rarely used to render content in Discourse, it’s mainly used to supply data and process changes to it.

Have you been through the plugin guides?

Also take a look at How can I make my own Discourse plugins?

5 Likes