Skip to content

Add support for calling create on an association #28

@danielgranat

Description

@danielgranat

Failure/Error: c = myKindel.ebooks.create!(:name => "book1")
NoMethodError:
undefined method `create!' for []:Array

This is the way it does work:
c1 = Ebook.create!(:name => "book1", :kindel_id => myKindel.id )
c2 = Ebook.create!(:name => "book2", :kindel_id => myKindel.id)
myKindel.ebooks = [c1,c2]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions