Sha256: afa9161f17de4248b31fdbcfe9a954f86169bad6a3813da99975b7d88f74c73e

Contents?: true

Size: 726 Bytes

Versions: 4

Compression:

Stored size: 726 Bytes

Contents

<h3>Update Your Model's Data</h3>
<div class="jumbotron">
  <%= form_for @single_associated_data, url: association_update_path(associated_model: params[:associated_model],associated_model_class: params[:associated_model_class], data: params[:data]), method: :patch do |f| %>
      <% (@single_associated_data.attribute_names - %w(id serialized_options created_at updated_at)).each do |associated_model_column| %>
          <div class="form-group">
            <%= f.label associated_model_column %>
            <div class="form-group">
              <%= f.text_field associated_model_column %>
            </div>
          </div>
      <% end %>
      <%= f.submit 'Save Changes', class:"btn btn-primary" %>
  <% end %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
model_info-0.0.4 app/views/model_info/associations/edit.html.erb
model_info-0.0.3 app/views/model_info/associations/edit.html.erb
model_info-0.0.2 app/views/model_info/associations/edit.html.erb
model_info-0.0.1 app/views/model_info/associations/edit.html.erb