Hello, I have a form in which I am using some javascript to disable the submit button after it is clicked. However, it ceases to submit the form. Thus, I need to use a javascript line that submits it. No problem there, but it won't work because the form doesn't have a 'name' tag. Using form_for in my rhtml page in this manner:
<% form_for :push_ex, :url => { :controller => 'push', :action => 'index', :type => 'push_ex'} do %>
results in this html: <form action="/push?type=push_ex" method="post">
I need the Ruby to render the HTML as: <form name="push_ex" action="/push?type=push_ex" method="post">
I tried adding :name => "push_ex" in the form_for tag, but it doesn't do anything. What can I do to add the name to the form?
Thanks!!! - Jeff Miller