ruby問題(解決)


サーバAには次のようなコードがあります.
<%= start_form_tag :action => "receive_post"%>
   <%= text_field 'todoproject', 'title' %>
   #     cookies
   <%= text_field 'todoproject', 'current_cookies',:value=>request.cookies %>
     ..............
  <%= submit_tag "form" %>
<%= end_form_tag %>

別のサーバBには、プロジェクトがあり、todoprojectのデータベースが構築されています.
 

  #        form post 
   def receive_post
      pp params["todoproject"]
    end
  

解決策
def bug_poster   
   html << "<div id='hidden_div'>"  
   html<< hidden_field('todo_project', 'current_cookies',:value=>request.cookies)       
   html<< "</div>"  
   html << "<div id='attachbig' width='100%'>"         
   html<< %(<script type=text/javascript language=JavaScript>
) html<< %(function checkdata\(\){
) html<<%(iframe_form.document.form1.innerHTML=$\('hidden_div'\).innerHTML+iframe_form.document.form1.innerHTML
) html<< %(};
) html<<%(</script>
) html << "<iframe id='iframe_form' src='http://localhost:3000/todo_project/new' onload='checkdata();'>" html<<"</iframe>" html << "</div>" end