# Why my renderTemplate doesn't work at all?

**URL:** <https://discuss.emberjs.com/t/why-my-rendertemplate-doesnt-work-at-all/5430>\
**Category:** Uncategorized\
**Created:** [May 27, 2014, 8:47am UTC](https://discuss.emberjs.com/t/why-my-rendertemplate-doesnt-work-at-all/5430 "2014-05-27T08:47:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hwoarangzk](https://avatars.discourse-cdn.com/v4/letter/h/919ad9/32.png) [@hwoarangzk](https://discuss.emberjs.com/u/hwoarangzk)\
**Post date:** [May 27, 2014, 8:47am UTC](https://discuss.emberjs.com/t/why-my-rendertemplate-doesnt-work-at-all/5430/1 "2014-05-27T08:47:09Z")

</div>

Recently I read the article “An In-depth Introduction to Emberjs” and followed step by step of its example code, but when it goes to renderTemplate part, it doesn’t work at all. Here is my code(not all the code):

### app.js:

```javascript
App = Ember.Application.create();

App.Router.map(function() {
  this.resource('users', function() {
    this.resource('user', {path : '/:user_id'}, function() {
      this.route('edit');
    });
    this.route('create');
  });
  this.resource('tests');
});

App.UsersCreateRoute = Ember.Route.extend({
  model : function() {
    return Ember.Object.create({});
  },
  renderTemplate : function() {
    this.render('user.edit', {
      controller : 'usersCreate'
    });
  }
});

```

It’s weird that when I go to `/index.html#/users/create`, `user/edit` template doesn’t come into sight, but there is no error reported in the console, and when I defined a template whose id is `users/create`, this `users/create` template got rendered on the page.

So why here the `renderTemplate` method doesn’t work?

Thanks.

---

<div class="post-metadata">

**Author:** ![YIk](https://avatars.discourse-cdn.com/v4/letter/y/a5b964/32.png) [@YIk](https://discuss.emberjs.com/u/YIk)\
**Post date:** [May 27, 2014, 2:37pm UTC](https://discuss.emberjs.com/t/why-my-rendertemplate-doesnt-work-at-all/5430/2 "2014-05-27T14:37:50Z")

</div>

@hwoarangzk Can you give sample jsbin, then can find issue easily.

IMO If you use ember app kit structure will be easier for you

[http://iamstef.net/ember-app-kit/guides/getting-started.html](http://iamstef.net/ember-app-kit/guides/getting-started.html)

Ember Cli ([http://iamstef.net/ember-cli/](http://iamstef.net/ember-cli/)) is a command line utility and will be create project template (structure) with ember app kit…

---

<div class="post-metadata">

**Author:** ![jhsu](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/jhsu/32/15587_2.png) [@jhsu](https://discuss.emberjs.com/u/jhsu)\
**Post date:** [May 27, 2014, 2:53pm UTC](https://discuss.emberjs.com/t/why-my-rendertemplate-doesnt-work-at-all/5430/3 "2014-05-27T14:53:08Z")

</div>

if your template name is `user/edit` you’ll probably want to use that as the template name for `this.render('user/edit', ...)`

---

<div class="post-metadata">

**Author:** ![hwoarangzk](https://avatars.discourse-cdn.com/v4/letter/h/919ad9/32.png) [@hwoarangzk](https://discuss.emberjs.com/u/hwoarangzk)\
**Post date:** [May 28, 2014, 1:31am UTC](https://discuss.emberjs.com/t/why-my-rendertemplate-doesnt-work-at-all/5430/4 "2014-05-28T01:31:27Z")

</div>

Hi @jhsu, I also tried ‘user/edit’ as the parameter for the render, but it doesn’t work as well.

And @YIk, due to the company policy, I can’t get access to JSBin, but I’ll the the link you gave to me

Thank you all 🙂

---

<div class="post-metadata">

**Author:** ![edeblois](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/edeblois/32/14946_2.png) [@edeblois](https://discuss.emberjs.com/u/edeblois)\
**Post date:** [June 1, 2014, 4:19pm UTC](https://discuss.emberjs.com/t/why-my-rendertemplate-doesnt-work-at-all/5430/5 "2014-06-01T16:19:18Z")

</div>

It totally should have worked: [JSBin Demo](http://emberjs.jsbin.com/lihevera/1/edit?html,js,output).

If it doesn’t, make sure your `user/edit` template exists by checking for `Ember.TEMPLATES['user/edit']` in the console. It’s possible that wherever you placed the template file in your app doesn’t match what your build tool expects and so the template could not be found.

---

<div class="post-metadata">

**Author:** ![hwoarangzk](https://avatars.discourse-cdn.com/v4/letter/h/919ad9/32.png) [@hwoarangzk](https://discuss.emberjs.com/u/hwoarangzk)\
**Post date:** [June 3, 2014, 1:34am UTC](https://discuss.emberjs.com/t/why-my-rendertemplate-doesnt-work-at-all/5430/6 "2014-06-03T01:34:50Z")

</div>

Thank you, I’ll take a look at it again 🙂
