Sha256: 38295c4d91cbd7d35ccf82bd39e7c8d3b013cbe3103d329634febc002995a7a8

Contents?: true

Size: 699 Bytes

Versions: 8

Compression:

Stored size: 699 Bytes

Contents

<%= form_for(@user, html: {multipart: true}) 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>
  <%= f.fields_for :photo do |p| %>
  <div class="field">
    <%= p.label :photo %><br />
    <%= p.file_field :photo %>
    <%= p.hidden_field :photo_cache %>
  </div>
  <% end %>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
media_magick-0.4.1 spec/dummy/app/views/users/_form.html.erb
media_magick-0.4.0 spec/dummy/app/views/users/_form.html.erb
media_magick-0.3.3 spec/dummy/app/views/users/_form.html.erb
media_magick-0.3.2 spec/dummy/app/views/users/_form.html.erb
media_magick-0.3.0 spec/dummy/app/views/users/_form.html.erb
media_magick-0.2.0 spec/dummy/app/views/users/_form.html.erb
media_magick-0.1.1 spec/dummy/app/views/users/_form.html.erb
media_magick-0.1.0 spec/dummy/app/views/users/_form.html.erb