Skip to content

Conversation

@tamlyn10
Copy link
Contributor

No description provided.

end

Then(/^a list of age\-filtered profiles is diplayed$/) do
save_and_open_page
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to go too!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed now.. thanks!

end

if params[:age]
@results = @results.select do |result|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than using select, use a where and perform your searches at the DB level

@dmgarland
Copy link
Member

@tamlyn10 this needs patching up before I can merge

@dmgarland
Copy link
Member

Still got some failing tests on this one

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

Successfully merging this pull request may close these issues.

3 participants