You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I lost some time on this lab due to confusion over the instructions and tests for this line:
"Add in search functionality such that users can search for a student by name and see all matching results on the students index page. The results should be displayed by rendering a students/_student.html.erb partial."
I understood I had to create a search method in the Student model and did so, but the instructions/tests imply that one need to search something first in order to display the results. In the students index file, what passes these tests is to iterate over @Students or Student.all as usual in an index file, but that's not the same as iterating over an array of search results, so was very confusing.
Some clearer instructions and specs could help future students avoid this confusion. Thanks!
Razelle
The text was updated successfully, but these errors were encountered:
I lost some time on this lab due to confusion over the instructions and tests for this line:
"Add in search functionality such that users can search for a student by name and see all matching results on the students index page. The results should be displayed by rendering a students/_student.html.erb partial."
I understood I had to create a search method in the Student model and did so, but the instructions/tests imply that one need to search something first in order to display the results. In the students index file, what passes these tests is to iterate over @Students or Student.all as usual in an index file, but that's not the same as iterating over an array of search results, so was very confusing.
Some clearer instructions and specs could help future students avoid this confusion. Thanks!
Razelle
The text was updated successfully, but these errors were encountered: