Skip to content

Instantly share code, notes, and snippets.

@russ
Created February 1, 2011 18:12
Show Gist options
  • Save russ/806302 to your computer and use it in GitHub Desktop.
Save russ/806302 to your computer and use it in GitHub Desktop.
<% Rails.cache.write('pj_products', :expires => 12.hours) do %>
<% products = cj.product_search('keywords' => "", 'advertiser-ids' => '', 'serviceable-area' => '', 'currency' => '', 'records-per-page' => '')) %>
<% products.each do |product| %>
<%= product.inspect %>
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment