Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9163705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:30:34+00:00 2026-06-17T14:30:34+00:00

Using ember 1.0.0-pre3 I have a little app that has this code: window.App =

  • 0

Using ember 1.0.0-pre3

I have a little app that has this code:

window.App = Ember.Application.create()

App.ApplicationController = Ember.Controller.extend({})

App.Router.reopen
  location: 'history'

App.Router.map ->
  @resource 'users', ->
    @route 'new'

App.IndexRoute = Ember.Route.extend
  renderTemplate: ->
    @render('index')

This is application.hbs in the templates directory:

<div class='navbar navbar-inverse navbar-fixed-top'>
  <div class='navbar-inner'>
    <div class='container'>
      <div class='nav-collapse collapse'>
        <ul class='nav'>
          <li>{{#linkTo 'index'}}Home{{/linkTo}}</li>
          <li>{{#linkTo 'users.index'}}Users{{/linkTo}}</li>
        </ul>
      </div>
    </div>
  </div>
</div>
<div class='container' id='main'>
  <div class='content'>
    <div class='row'>
      <div class='span12'>
        <div class='page-header'></div>
        {{outlet}}
      </div>
    </div>
  </div>
</div>

The problem is that it doesn’t render this template. It doesn’t throw an error when loading the the app at the base url “http://127.0.0.1:3000/&#8221;. It will throw an error if I try an undefined route, so I know that Ember is loaded.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:30:35+00:00Added an answer on June 17, 2026 at 2:30 pm

    There does not appear to be anything wrong with your ember code. I made a copy on jsbin and it works fine: http://jsbin.com/ipivoz/1/edit

    Pretty sure that means your template is not being compiled. To be sure, try adding the following to your application ready hook:

    window.App = Ember.Application.create({
      ready: function() {
        console.log("Ember.TEMPLATES: ", Ember.TEMPLATES);
      }
    });
    

    Ember expects compiled handlebars templates to be in this array. If you run the above jsbin with js console open you’ll see there is one template ‘application’ in the array. My guess is that the array will be empty if you try the same in your environment.

    There are many ways to get that done, which is right depends on your environment. Since you’re running on port 3000 I’m gonna guess that’s rails. In that case check out the ember-rails gem. By far the simplest short-term approach is to define templates using script tags within the HTML page, as I’ve done in the jsbin.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ember 1.0 pre and have a basic array controller that starts out
Using Ember.js I get an endless loop with the following code: Controller: App.activityDetailsController =
I am building a project management app using ember.js-pre3 ember-data revision 11. How do
I have an Ember application that is typically going to make ajax requests to
I'm loading App.Structure objects using ember-data's fixtures adapter. These objects have embedded App.Overlay objects
Consider this, MyApp = Ember.Application.create(); MyApp.someName = Ember.Namespace.create({ //my properties }); I can do
I am using ember-rest in my application for persistence layer, and it has been
I have a Ember.ArrayController that has an unsorted content. I want to know if
Using Ember 0.9.7.1 Getting this error in IE8 and below when my app starts
I am using Ember.js to create a table from a json feed. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.