What construction provides sending xml to some port?
def view z1 = Net::HTTP.get('localhost', '/avtm/view.xml',"3000"); xmls = Document.new(z1) @n = XPath.match(xmls, "//n").map {|x| x.text} end
This is the intended result code. and one of the pages should transmit the result, and the other to read it. This is a well-formed, but non-posted page:
def view() b=params[:b].to_i @z =avtomorfushka(b).size #собственная функция рассчетов @z z=avtomorfushka(b) respond_to do |format| format.html format.json { render json: @z z } format.xml { render xml: @z z } end end