Sha256: 33dec459728467595c28f4aae94afec2d91d0935d8d0b62281cc36e090b27c43
Contents?: true
Size: 226 Bytes
Versions: 7
Compression:
Stored size: 226 Bytes
Contents
class UsingVcrController < ApplicationController def index end def record_cats uri = URI('https://cat-fact.herokuapp.com/facts') res = Net::HTTP.get_response(uri) @cat_facts = JSON.parse(res.body) end end
Version data entries
7 entries across 7 versions & 1 rubygems