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.9.9 templates/app/views/_form.html.erb
daddy-0.9.8 templates/app/views/_form.html.erb
daddy-0.9.7 templates/app/views/_form.html.erb
daddy-0.9.6 templates/app/views/_form.html.erb
daddy-0.9.5 templates/app/views/_form.html.erb
daddy-0.9.4 templates/app/views/_form.html.erb
daddy-0.9.3 templates/app/views/_form.html.erb
daddy-0.9.2 templates/app/views/_form.html.erb
daddy-0.9.1 templates/app/views/_form.html.erb
daddy-0.9.0 templates/app/views/_form.html.erb
daddy-0.8.1 templates/app/views/_form.html.erb
daddy-0.8.0 templates/app/views/_form.html.erb
daddy-0.7.9 templates/app/views/_form.html.erb
daddy-0.7.8 templates/app/views/_form.html.erb
daddy-0.7.7 templates/app/views/_form.html.erb
daddy-0.7.6 templates/app/views/_form.html.erb
daddy-0.7.5 templates/app/views/_form.html.erb
daddy-0.7.4 templates/app/views/_form.html.erb
daddy-0.7.3 templates/app/views/_form.html.erb
daddy-0.7.2 templates/app/views/_form.html.erb