codebrew / backbone-rails

Easily use backbone.js with rails 3.1
MIT License
1.62k stars 255 forks source link

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

Open Passerby opened 9 years ago

Passerby commented 9 years ago

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.