Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In controller:
- @articles = Article.all
- In view:
- <% cache @articles do %>
- <% @articles.each do |article| %>
- <% cache article do %>
- <%= render article %>
- <% end %>
- <% end %>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement