Skip to content

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

Description

@Passerby

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions