Skip to content

Instantly share code, notes, and snippets.

@listrophy
Created April 30, 2009 05:32
Show Gist options
  • Save listrophy/104276 to your computer and use it in GitHub Desktop.
Save listrophy/104276 to your computer and use it in GitHub Desktop.
Shoes.setup do
gem 'activeresource'
end
require 'activeresource'
class Person < ActiveResource::Base
self.site = 'http://0.0.0.0:3000'
end
Shoes.app 'People!' do
title 'Pulled via ActiveResource:'
people = Person.find(:all)
stack do
people.each do |person|
para "Person: #{person.name} (#{person.phone})"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment