Add New Record

<%= form_for @model_data, url: model_create_path, method: :post do |f| %> <% (@model_data.class.column_names - %w(id serialized_options created_at updated_at)).each do |data_field| %>
<%= f.label data_field %> <%= hidden_field_tag :model_class, @model_class %>
<%= f.text_field data_field %>
<% end %> <%= f.submit 'Save Changes', class:"btn btn-primary" %> <% end %>