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

Iterating vs. rendering collection #18

Closed
MaxBrooks114 opened this issue Jun 12, 2019 · 1 comment
Closed

Iterating vs. rendering collection #18

MaxBrooks114 opened this issue Jun 12, 2019 · 1 comment

Comments

@MaxBrooks114
Copy link

I believe the way the spec is written is a little bottle-necky. The tests only pass if the @students variable is iterated through, versus using collections notation i.e. <%= render partial: "student", collection: @students %> . Don't they do the same thing?

@sgharms
Copy link
Contributor

sgharms commented Sep 25, 2019

They do! Tests can be written flexibly or brittle-ly. We've changed the implementation!

@sgharms sgharms closed this as completed Sep 25, 2019
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

2 participants