Skip to content

Render partial with collection #416

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

Merged
merged 5 commits into from
Oct 18, 2018
Merged

Conversation

markets
Copy link
Collaborator

@markets markets commented Aug 31, 2018

Render partials (in /members/manage and /members) using collection for speed 🏇 😄

EXTRA

Copy link
Collaborator

@sauloperez sauloperez left a comment

Choose a reason for hiding this comment

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

is it really faster than each? I didn't know about it.

@markets
Copy link
Collaborator Author

markets commented Sep 4, 2018

It's not a big big change 😃 but it seems worth doing: https://medium.com/@coorasse/partial-rendering-performance-in-rails-101fdfb6ffb9

It's also the recommended way of rendering collections: https://guides.rubyonrails.org/layouts_and_rendering.html#rendering-collections

@enricostano
Copy link
Contributor

Rebased (via merge) and deployed to staging

@sseerrggii
Copy link
Contributor

Works fine for me! Thanks @markets 💪

@enricostano enricostano merged commit cb66a2d into develop Oct 18, 2018
@enricostano enricostano deleted the render_partial_with_collection branch October 18, 2018 13:33
@enricostano enricostano mentioned this pull request Oct 19, 2018
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.

In /members/manage view don't redirect to /member after cancel membership Members list, paginate in even numbers
4 participants