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 7, 2017 · 0 comments
Open

Paper should have and belong to many authors #29

swt2public opened this issue Nov 7, 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:0x000000048a0850
Did you mean? author_id
Did you mean? author_id

Estimated progress: 88% complete

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