Skip to content

Instantly share code, notes, and snippets.

@jerodsanto
Created January 30, 2013 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jerodsanto/4677508 to your computer and use it in GitHub Desktop.
Save jerodsanto/4677508 to your computer and use it in GitHub Desktop.
class PagesController < ApplicationController
exposes :weather
def index
@weather = Rails.cache.fetch "weather", expires_in: 5.minutes do
Weather.lookup 68164
end
render
end
def faq
render
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment