EmberJS can't find route

I'm new to EmberJS and following this tutorial:

http://coding.smashingmagazine.com/2013/11/07/an-in-depth-introduction-to-ember-js/

Currently I've this file structure:

index.html
static/js/app.js
static/js/compononents
static/js/controllers/usersController.js
static/js/handlebars-v1.1.2.js
static/js/helpers
static/js/models/user.js
static/js/router.js
static/js/routes/usersRoute.js
static/js/store.js
static/js/templates/application.hbs
static/js/templates/index.hbs
static/js/templates/user.hbs
static/js/templates/users.hbs
static/js/views/

Currently I've got all the code until the 'SINGLE USER ROUTE'-part.

I've exactly followed the tutorial, but when I go http://ember.lusenet.com/#/users , I get the error 'Assertion failed: The URL '/users' did not match any routes in your application'. I really don't know what's going wrong. Any help is appreciated!

Answers


Did you use https://github.com/stefanpenner/ember-app-kit ? your app.js file only has:

window.App = Ember.Application.create();

Doesnt seem like grunt is properly concatenating your JS files.


Need Your Help

Java JTable and JToolBar resizing strangely

java swing miglayout jtoolbar

I noticed very strange behavior of my program today. Basically I have JToolBar uder which is JScrollPane with JTable. Both inside JPanel inside JFrame. Every container using MigLayout.

keyboard events in .NET

c# vb.net forms keyboard

The key up event gets triggered when a key is released. This holds true for normal keys like a, b etc. However, holding down the arrow key or escape key produses different results.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.