Sha256: dc72c425be5f3a116868864acf3ec7603de5ac10ff4907dd7287d34bc20e4de8
Contents?: true
Size: 769 Bytes
Versions: 2
Compression:
Stored size: 769 Bytes
Contents
<%= form_with(model: article, local: true) do |form| %> <% if article.errors.any? %> <header> <h4><%= pluralize(article.errors.count, "error") %> prohibited this article from being saved:</h4> <ul> <% article.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </header> <% end %> <%= form.label :title %> <%= form.text_field :title, required: true %> <%= form.label :text %> <%= form.hidden_field :text %> <trix-editor input="article_text" class="trix-content" required></trix-editor> <%= form.label :publish_at %> <%= form.date_field :publish_at %> <button type="submit">Save</button> <%= link_to articles_path do %> <em>Back</em> <% end %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bongo-0.0.4 | app/views/bongo/articles/_form.html.erb |
bongo-0.0.3 | app/views/bongo/articles/_form.html.erb |