Sha256: 4571699ce37c6794d78ab6ec158663d7c1504fad62518dcf46d210fc3c583711

Contents?: true

Size: 713 Bytes

Versions: 4

Compression:

Stored size: 713 Bytes

Contents

<%= render 'model_info/shared/flash_messages' unless flash.empty? %>
<div class='jumbotron'>
  <%= form_for model_data, url: url, method: local_assigns[:new] ? :post : :patch do |f| %>
      <% (model_data.class.column_names - %w(id serialized_options created_at updated_at)).each do |attribute| %>
          <div class='form-group'>
            <%= f.label attribute %>
            <%= hidden_field_tag :model_class, model_class %>
            <div class='form-group'>
              <%= f.text_field attribute, :class => 'form-control' %>
            </div>
          </div>
      <% end %>
      <%= f.submit local_assigns[:new] ? 'Create Record' : 'Save Changes', class: 'btn btn-primary' %>
  <% end %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
model_info-1.0.0 app/views/model_info/shared/_form.html.erb
model_info-0.0.9 app/views/model_info/shared/_form.html.erb
model_info-0.0.8 app/views/model_info/shared/_form.html.erb
model_info-0.0.7 app/views/model_info/shared/_form.html.erb