• <% flash.each do |key, value| %>
    <% end %> <%= form_tag send(@Klass.to_s.underscore.pluralize + '_path', :update => @update_span, :parent_class => @parent_class, :parent_id => @parent_id ), :multipart => true, :remote => true, :class => "edit_form" do -%>
    <% attributes = @inline_forms_attribute_list || @object.inline_forms_attribute_list -%> <% attributes.each do | attribute, name, form_element | -%> <% unless form_element.to_sym == :associated -%> <% css_class_id = "attribute_#{attribute}_#{@object.id}" -%> <% end -%> <% end -%>
    <%= t('inline_forms.view.add_new', :model => @Klass.model_name.human ) -%>
    <%= @object.class.human_attribute_name(attribute) -%>
    <%= send("#{form_element}_edit", @object, attribute) -%>
    <%= link_to( send(@Klass.to_s.underscore.pluralize + '_path', :update => @update_span, :parent_class => @parent_class, :parent_id => @parent_id ), :remote => true, :class => "edit_form_cancel" ) do %> <% end %> <%= submit_tag "ok", :class => "edit_form_submit"-%>
    <% end %>