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

JST["backbone/templates/users/index"] Uncaught TypeError: this.template is not a function #192

Open
Passerby opened this issue May 4, 2015 · 0 comments

Comments

@Passerby
Copy link

Passerby commented May 4, 2015

I use github gem 'rails-backbone', git: 'https://github.com/codebrew/backbone-rails' in rails 4.2.1. And use rails g backbone:scaffold user username:string phone:string to generate some file.

But in chrome console show Uncaught TypeError: this.template is not a function when I open 'http://localhost:3000/users'.

I edit template: JST["backbone/templates/users/index"] to template: JST["backbone/templates/users/indexx"] and index file name to 'indexx', it's fine.

so strange.

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

1 participant