Reputation: 10412
I'm trying to render EmberJS with application.hbs
in my Rails app but I cannot get it to render on my dashboard page.
Furthermore, when I go to http://example.com/#/users
I get below error:
Assertion failed: You specified the templateName users for <VirtualExhibition.UsersView:ember354>, but it did not exist.
I have user.hbs
in templates
folder but nothing seems to be rendering at all. Even just plain text string does not appear from the template
Could this be something to do with Ember's naming conventions?
Upvotes: 0
Views: 80
Reputation: 10412
I got it to work. You need to have hjs
instead of hbs
as extensions. This is because handlebars_assets
gem is conflicting with ember-rails
gem when compiling handlebars templates.
I found this link extremely helpful:
I hope this helps developers having similar issues.
Upvotes: 1
Reputation: 47367
There's a chance you meant users
template? not a user
template.
This all depends on whether or not you are defining a different template name somewhere else or not.
Upvotes: 0