Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paper should have and belong to many authors #29

Open
swt2public opened this issue Nov 3, 2017 · 0 comments
Open

Paper should have and belong to many authors #29

swt2public opened this issue Nov 3, 2017 · 0 comments

Comments

@swt2public
Copy link

Scenario

Given a paper
Then it should have an empty list of authors

Hints

To create an n:m relation, you need to create a new database table.
Help can be found on StackOverflow or in the official documentation.

Then, you need to define has_and_belongs_to_many in both model classes.

Error

Got NoMethodError: undefined method `authors' for #Paper:0x00000006ad4700

Estimated progress: 88% complete

ErikBrendel added a commit that referenced this issue Nov 3, 2017
ErikBrendel added a commit that referenced this issue Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant