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

Edit paper page should allow to select 5 authors from 5 separate drop downs #31

Open
swt2public opened this issue Nov 9, 2017 · 1 comment

Comments

@swt2public
Copy link

Scenario

Given a paper
When a user visits the paper's edit page
Then it should have a select box for the first author

Hints

Create a <label> for each <select> and set the for attribute of the label to the id of the select. For example

f.label "Author 1", for: "paper_author_id_1"
f.collection_select :author_ids, authors, :id, :name, {selected: @paper.author_ids[1], include_blank: '(none)'}, {name: "paper[author_ids][]", id: "paper_author_id_1"}

See collection_select

Error

Expected to find field "author 1" but there were no matches

Estimated progress: 92% complete

@swt2public
Copy link
Author

Sorry, it's not working for me yet:

Scenario

Given a paper
When a user visits the paper's edit page
Then it should have a select box for the first author

Error

Expected to find field "author 1" but there were no matches

If you have problems solving this task, please don't hesitate to contact the teaching team!

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