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.
I use github
gem 'rails-backbone', git: 'https://github.com/codebrew/backbone-rails'in rails 4.2.1. And userails g backbone:scaffold user username:string phone:stringto generate some file.But in chrome console show
Uncaught TypeError: this.template is not a functionwhen I open 'http://localhost:3000/users'.I edit
template: JST["backbone/templates/users/index"]totemplate: JST["backbone/templates/users/indexx"]and index file name to 'indexx', it's fine.so strange.