I have a static page and static controller. In the page am using Jquery UI Accordion in a four category. Each category has separate controller, model and view. I am trying to render all the category into the accordion and work like it does separately. I got a problem with that, So, I tried to create a form in the static page and do like the following. But all the forms opened in the first tab. I want to open and save the form separately as per the tabs. Any idea would be more appreciated. Thanks
<div class="funding_form">
<%= form_for(@funding_source, :remote => true) do |f| %>
<fieldset>
<legend>Funding Source</legend>
<div class="control-group">
<%= f.label :Source_name, 'Funding Source Name' %>
<%= f.text_field :Source_name %>
</div>
<div class="action">
<%= f.submit 'Save Source name', :class => 'funding_save', remote: true %> | <%= link_to 'Cancel', "#", {:remote => true, :class => 'funding_cancel_button' } %>
</div>
</fieldset>
<% end %>
</div>
<div class="packages_form">
<%= form_for(@package, :remote => true) do |f| %>
<fieldset>
<legend>Packages</legend>
<div class="control-group">
<%= f.label :Package_name, 'Package Name' %>
<%= f.text_field :Package_name %>
</div>
<div class="action">
<%= f.submit 'Save Packages', :class => 'package_save', remote: true %> | <%= link_to 'Cancel', "#", {:remote => true, :class => 'package_cancel_button' } %>
</div>
</fieldset>
<% end %>
</div>