We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given a paper Then it should have an empty list of authors
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.
has_and_belongs_to_many
Got NoMethodError: undefined method `authors' for #Paper:0x000000048a0850 Did you mean? author_id Did you mean? author_id
Estimated progress: 88% complete
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
Estimated progress: 88% complete
The text was updated successfully, but these errors were encountered: