Skip to content

Instantly share code, notes, and snippets.

@kubicek
Created January 10, 2010 12:49
Show Gist options
  • Save kubicek/273485 to your computer and use it in GitHub Desktop.
Save kubicek/273485 to your computer and use it in GitHub Desktop.
get '/companies/:ic' do
@db = CouchRest.database!("http://127.0.0.1:5984/obchodni_rejstrik")
doc = @db.get(params[:ic])
xml = Nokogiri::XML(doc['content'])
xslt = Nokogiri::XSLT(File.read('obchodni_rejstrik.xslt'))
xslt.transform(xml).to_s
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment