Sha256: e29d1cd7519b3a6ea34bf55b2aa949a1ab9bfcbf7c5d872251c75e8e0d59fcd8
Contents?: true
Size: 771 Bytes
Versions: 3
Compression:
Stored size: 771 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>Cancel</em> <% end %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bongo-0.2.0 | app/views/bongo/articles/_form.html.erb |
bongo-0.1.1 | app/views/bongo/articles/_form.html.erb |
bongo-0.1.0 | app/views/bongo/articles/_form.html.erb |