Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: users not defined #132

Open
EnergeticPixels opened this issue Jan 5, 2015 · 1 comment
Open

Uncaught ReferenceError: users not defined #132

EnergeticPixels opened this issue Jan 5, 2015 · 1 comment

Comments

@EnergeticPixels
Copy link

I have been following along in the tutorial, but have an issue when you render real data at the 28minute mark of the tutorial - first time real data. Up to this point everything works. I know if I remove the underscore each function, the template renders with the headings. But I don't know where the issue is. I have uploaded my html page up to this point to my github account.

Any help would greatly be appreciated. Backbone and underscore n00b here.
Tony

@dmordine
Copy link

dmordine commented Feb 4, 2015

Try:
var template = _.template($('#user-list-template').html())({users: users.models});

Instead of:
var template = _.template($('#user-list-template').html(), {users: users.models});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants