We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cached: true
I have view with:
<% same_sets = [ [1,2,3,4,5], [1,2,3,4,5], [1,2,3,4,4], [1,2,3,4,4], [1,2,3,4,6], ]%> with 'cached: true'<br /> <%= render partial: 'test_row', collection: same_sets, cached: true %> <br /> with 'cached: false'<br /> <%= render partial: 'test_row', collection: same_sets, cached: false %> <br />
and corresponding partial _test_row.html.erb :
_test_row.html.erb
<%= test_row.first %> | <%= test_row.second %> | <%= test_row.third %> | <%= test_row.fourth %> | <%= test_row.fifth %><br />
That view will produce this result:
with 'cached: true' 1 | 2 | 3 | 4 | 5 1 | 2 | 3 | 4 | 4 1 | 2 | 3 | 4 | 6 with 'cached: false' 1 | 2 | 3 | 4 | 5 1 | 2 | 3 | 4 | 5 1 | 2 | 3 | 4 | 4 1 | 2 | 3 | 4 | 4 1 | 2 | 3 | 4 | 6
For array with size 5, I expect 5 rows, with or without caching.
For array with size 5, I got 3 (different) rows with caching enabled.
Rails version: 5.2.2
Ruby version: 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
The text was updated successfully, but these errors were encountered:
I think this is a bug and I can reproduce it in latest master as well.
Sorry, something went wrong.
Fixed by #35145
Merge pull request #36040 from st0012/update-changelog-for-35145
759c8d5
Update changelog to explain the fix of #35114 [ci skip]
No branches or pull requests
Steps to reproduce
I have view with:
and corresponding partial
_test_row.html.erb
:That view will produce this result:
Expected behavior
For array with size 5, I expect 5 rows, with or without caching.
Actual behavior
For array with size 5, I got 3 (different) rows with caching enabled.
System configuration
Rails version: 5.2.2
Ruby version:
2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
The text was updated successfully, but these errors were encountered: