Guest User

Untitled

a guest
Mar 13th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2. require "cgi"
  3. require 'active_record'
  4.  
  5. ActiveRecord::Base.establish_connection(
  6. :adapter => ,
  7. :database => ,
  8. :username => ,
  9. :password => ,
  10. :host =>
  11. )
  12. ActiveRecord::Base.pluralize_table_names = false
  13.  
  14. class Thing < ActiveRecord::Base; end;
  15.  
  16. things = Thing.all
  17.  
  18. cgi = CGI.new
  19. puts "Content-Type: application/xml; charset=utf-8"
  20. puts
  21. puts things.to_xml
Add Comment
Please, Sign In to add comment