Sha256: dbf871f7e023389cfcc6a7b8f393ade4df2a0bc83a5f7f9c520f5755bd347616
Contents?: true
Size: 907 Bytes
Versions: 4
Compression:
Stored size: 907 Bytes
Contents
<h3>Add New Record</h3> <div class="jumbotron"> <%= form_for @associated_data, url: association_create_path, method: :post do |f| %> <% (@associated_data.class.column_names - %w(id created_at updated_at serialized_options)).each do |associated_model_column| %> <div class="form-group"> <%= f.label associated_model_column %> <%= hidden_field_tag :associated_model_class, params[:associated_model_class]%> <%= hidden_field_tag :associated_model, params[:associated_model]%> <%= hidden_field_tag :model_class, params[:model_class]%> <%= hidden_field_tag :model_object_id, params[:model_object_id]%> <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