Skip to content

Instructions for Search Feature Very Vague #698

Open
@jasminetealady

Description

@jasminetealady

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions