codebrew/backbone-rails — Issue #57: edit_view,js: this.$("form").backboneLink(@model) Uncaught TypeError: Object [object Object] has no method 'backboneLink'
Author: mugwump
Created: 2011-10-26 06:33:40+00:00
State: open

Just generated a scaffold and walking through the generated code: Most things work fine but there is problem with the edit_view.js:

```javascript
render : ->
$(this.el).html(this.template(@model.toJSON() ))

this.$("form").backboneLink(@model)

return this
```
which gives a:

```javascript
Uncaught TypeError: Object [object Object] has no method 'backboneLink'
```
As I understand it, the call shall link the edit-form to the update-method of the router (?!) - but I cannot find the place where this method is automagically added to the form?!

Any ideas?!

cheers
stefan