×

New

<%= simple_form_for @record, as: 'record', url: table_create_path(@table, pk_id: @record[@table.primary_key]), remote: true, method: :post, html: {class: 'vertical_form'} do |form| %>
<% @record.class.columns.each do |column| %> <% name = column.name %> <% next if [@table.primary_key, 'created_at', 'updated_at'].include?(column.name) %> <%= form.input name, label: name %> <% end %>
<%= form.submit 'SAVE', class: 'button small' %> Close <% end %> NOTE: Update will happen without any validations.