Last active
November 23, 2015 08:10
-
-
Save vladshub/35ba611582807eca5946 to your computer and use it in GitHub Desktop.
RailsIsrael - Presentation Snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% @products.each do |product| %> | |
| <% cache product do %> | |
| <%= render product %> | |
| <% end %> | |
| <% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Class ListController < ApplicationController | |
| before_filter :authentication, except: :public | |
| page_cache: :public | |
| action_cache: :index, :show | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| redis = Redis.new(timeout: 0.1, reconnect_attempts: 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment