<% body, html_attrs, ajax_attrs, form_attrs = form_helper(attributes, parameters) unless body.nil? add_data_rapid!(html_attrs, :form, :ajax_attrs => ajax_attrs) unless ajax_attrs.empty? add_data_rapid!(html_attrs, :before_unload, :message => before_unload) if before_unload %> <%= element("form", html_attrs.merge(form_attrs), body) if body %> <% end %>