Sha256: 3b7ef189cb364dda04e2752751836ff93129a11e6e8b0edb6601838e4551ece7

Contents?: true

Size: 1.1 KB

Versions: 12

Compression:

Stored size: 1.1 KB

Contents

<%= form_for(@user, :html => {:class => "nested_crimagify_images", :data => {parentobject: @user.class.name.underscore, parent: @user.products.first.class.name.underscore.pluralize} }) do |f| %>
  <% if @user.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

      <ul>
      <% @user.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :lastname %><br />
    <%= f.text_field :lastname %>
  </div>
  <div class="field">
    <%= f.label :email %><br />
    <%= f.text_field :email %>
  </div>
  <!--StartCropperImagesSection-->
  <b><h3><legend>Products</legend></h3></b>

  <%= f.fields_for :products do |product| %>
    <%= render 'product_fields', f: product %>
  <% end %>
  <%= link_to_add_fields "Add Product", f, :products %>  
  <!--StartCropperImagesSection-->
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
crimagify-0.0.4.3 test/dummy/app/views/users/_form.html.erb
crimagify-0.0.4.2 test/dummy/app/views/users/_form.html.erb
crimagify-0.0.4.1 test/dummy/app/views/users/_form.html.erb
crimagify-0.0.4.0 test/dummy/app/views/users/_form.html.erb
crimagify-0.0.3.9 test/dummy/app/views/users/_form.html.erb
crimagify-0.0.3.8 test/dummy/app/views/users/_form.html.erb
crimagify-0.0.3.6 test/dummy/app/views/users/_form.html.erb
crimagify-0.0.3.5 test/dummy/app/views/users/_form.html.erb
crimagify-0.0.3.4 test/dummy/app/views/users/_form.html.erb
crimagify-0.0.3.3 test/dummy/app/views/users/_form.html.erb
crimagify-0.0.3.2 test/dummy/app/views/users/_form.html.erb
crimagify-0.0.3.1 test/dummy/app/views/users/_form.html.erb