Skip to content

Instantly share code, notes, and snippets.

@alkema
Created September 24, 2009 20:08
Show Gist options
  • Select an option

  • Save alkema/193020 to your computer and use it in GitHub Desktop.

Select an option

Save alkema/193020 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require "cgi"
require 'active_record'
ActiveRecord::Base.establish_connection(
:adapter => ,
:database => ,
:username => ,
:password => ,
:host =>
)
ActiveRecord::Base.pluralize_table_names = false
class Thing < ActiveRecord::Base; end;
things = Thing.all
cgi = CGI.new
puts "Content-Type: application/xml; charset=utf-8"
puts
puts things.to_xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment