Sha256: 1f927619e5f6774d4f2027531d7f7b4afd72e82ff77f7cccdb07183d24b78538

Contents?: true

Size: 859 Bytes

Versions: 110

Compression:

Stored size: 859 Bytes

Contents

<%= @tag_begin %>= form_for @<%= @resource %> do |f| <%= @tag_end %>
  <%= @tag_begin %> if @<%= @resource %>.errors.any? <%= @tag_end %>
    <div class="errors">
      <ul>
        <%= @tag_begin %> @<%= @resource %>.errors.full_messages.each do |msg| <%= @tag_end %>
          <li><%= @tag_begin %>= msg <%= @tag_end %></li>
        <%= @tag_begin %> end <%= @tag_end %>
      </ul>
    </div>
  <%= @tag_begin %> end <%= @tag_end %>

  <table>
<% @model_class.columns.each do |column| -%>
<% next if %w{ id deleted created_at updated_at }.include?(column.name.to_s) -%>
    <tr>
      <th><%= @tag_begin %>= f.label :<%= column.name %> <%= @tag_end %></th>
      <td><%= @tag_begin %>= f.text_field :<%= column.name %> <%= @tag_end %></td>
    </tr>
<% end -%>
  </table>
  <%= @tag_begin %>= f.submit <%= @tag_end %>
<%= @tag_begin %> end <%= @tag_end %>

Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
daddy-0.5.3 templates/app/views/_form.html.erb
daddy-0.5.2 templates/app/views/_form.html.erb
daddy-0.5.1 templates/app/views/_form.html.erb
daddy-0.5.0 templates/app/views/_form.html.erb
daddy-0.4.10 templates/app/views/_form.html.erb
daddy-0.4.9 templates/app/views/_form.html.erb
daddy-0.4.8 templates/app/views/_form.html.erb
daddy-0.4.7 templates/app/views/_form.html.erb
daddy-0.4.6 templates/app/views/_form.html.erb
daddy-0.4.5 templates/app/views/_form.html.erb
daddy-0.4.4 templates/app/views/_form.html.erb
daddy-0.4.3 templates/app/views/_form.html.erb
daddy-0.4.2 templates/app/views/_form.html.erb
daddy-0.4.1 templates/app/views/_form.html.erb
daddy-0.4.0 templates/app/views/_form.html.erb
daddy-0.3.38 templates/app/views/_form.html.erb
daddy-0.3.37 templates/app/views/_form.html.erb
daddy-0.3.36 templates/app/views/_form.html.erb
daddy-0.3.35 templates/app/views/_form.html.erb
daddy-0.3.34 templates/app/views/_form.html.erb