だから私はこれに似た1つのテキスト領域を持つ単純なフォームを送信しようとしています
"Lots of stuff that doesn't matter
a couple of lines later
agent => A5656,,5665"
私がやろうとしているのは、エージェントとの電話を切ることです。ところで、このファイルにはたくさんの "agent" 行がありますが、それは問題ではありません。とにかくここに私のコードがあります:
new_agent = @elastix.get https://#{@elastix_ip}/index.phpmenu=file_editor&action=edit&file=agent.conf
new_agent_form = new_agent.forms.first
settings = new_agent_form['content']
new_agent_form['content'] = settings.gsub(/agent => #{options[:ext]},,#{options[:UserID]}/,'')
new_agent_form.encoding = "utf-8"
@elastix.submit(new_agent_form,new_agent_form.button_with(:name => "Guardar"))
スローされるエラーはありません。"raise new_agent_form.content.inspect"
送信する前に、テキスト領域に必要なエントリが含まれていないことが示されます。何らかの理由で、それが機能していないか、何かが欠けています。どんな助けでも大歓迎です。