Hi
I have a file edit.rhtml
<%= start_form_tag ({ :action => ‘update’, :id => @ci, :method =>
‘post’}, :class => ‘itilform’, :enctype => ‘multipart/form-data’,
:onSubmit => ‘return validate_form();’)%>
Save |
<%= end_form_tag %>
In partial file _edit_hardware_ci.rhtml there is another
start_form_tag and submit tab.The File is as folliows
<%= start_form_tag ({:controller => ‘ci’, :action =>
‘edit_ci_functional_spec’, :ci => @ci, :method => ‘post’}, :class =>
‘itilform’)%>
<%= text_area "ci_content", "functional_spec", "cols" => 120, "rows" => 5 %> |
<%#= submit_tag('Save') %> Save |
BUT SUBMIT BUTTON IN THE PARTIAL FILE CALLS THE ACTION IN
EDIT.RHTML…HOW CAN I CALL THE ACTION SPECIFIED IN THE STRAT FORM TAG
OF PARTIAL FILE _EDIT_HARDWARE_CI.RHTML
Sijo