【发布时间】:2018-05-04 11:59:28
【问题描述】:
我想单独发送消息:
teste = Nokogiri::XML::DocumentFragment.parse("")
Nokogiri::XML::Builder.with( teste ){ |x|
x.exemplo "teste xml"
}
puts teste.to_xml
消息打印
<exemplo>teste xml</exemplo>
你想要的消息
<ns3:exemplo>teste</ns3:exemplo>
【问题讨论】:
-
试试
puts teste.to_text -
我想给你发消息:
teste
标签: ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-4 rubygems