Sha256: 1df5ded639452c706a1cbbdd9a30a7ab940bbb33d64594691568befa86c85c28

Contents?: true

Size: 166 Bytes

Versions: 27

Compression:

Stored size: 166 Bytes

Contents

class User < ActiveRecord::Base
  has_many :projects
  attr_accessible :name, :projects_attributes
  accepts_nested_attributes_for :projects, allow_destroy: true
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
nested_form_fields-0.5.2 spec/dummy/app/models/user.rb
nested_form_fields-0.5.1 spec/dummy/app/models/user.rb
nested_form_fields-0.5.0 spec/dummy/app/models/user.rb
nested_form_fields-0.4.0 spec/dummy/app/models/user.rb
nested_form_fields-0.3.0 spec/dummy/app/models/user.rb
nested_form_fields-0.2.0 spec/dummy/app/models/user.rb
nested_form_fields-0.1.0 spec/dummy/app/models/user.rb