meleyal / backbone-on-rails

A simple gem for using Backbone.js with Rails.
MIT License
806 stars 125 forks source link

Add "model" option to collection scaffold #13

Closed ryanb closed 12 years ago

ryanb commented 12 years ago

When generating a scaffolding, it would be nice if the collection included a model option set to the generated model. Otherwise it may not use that model.

class App.Collections.People extends Backbone.Collection
  model: App.Models.Person
meleyal commented 12 years ago

I will add this in the next release