Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
Add Comment
Please, Sign In to add comment