Sha256: 11a0723763d391490bde69990e50e36a111889f406966e4e47adce672063eab8

Contents?: true

Size: 814 Bytes

Versions: 1

Compression:

Stored size: 814 Bytes

Contents

<%= form_with(model: topic, local: true) do |form| %>
  <% if topic.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(topic.errors.count, "error") %> prohibited this topic from being saved:</h2>

      <ul>
      <% topic.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= form.label :title %>
    <%= form.text_field :title %>
  </div>

  <div class="field">
    <%= form.label :slug %>
    <%= form.text_field :slug %>
  </div>

  <div class="field">
    <%= form.label :color %>
    <%= form.text_field :color %>
  </div>

  <div class="field">
    <%= form.label :views %>
    <%= form.text_field :views %>
  </div>

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
friendly_slug-0.1.6 friendly_slug_gem_test/app/views/topics/_form.html.erb