Sha256: d8d81f759159dcecbfc395938dafce0826a101c305fab383c4cb8408d720d32f
Contents?: true
Size: 713 Bytes
Versions: 2
Compression:
Stored size: 713 Bytes
Contents
<%= form_with(model: blog, local: true) do |form| %> <% if blog.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(blog.errors.count, "error") %> prohibited this blog from being saved:</h2> <ul> <% blog.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 :body %> <%= form.text_area :body %> </div> <div class="field"> <%= form.label :views %> <%= form.text_field :views %> </div> <div class="actions"> <%= form.submit %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
friendly_slug-0.1.6 | friendly_slug_gem_test/app/views/blogs/_form.html.erb |
friendly_slug-0.1.5 | friendly_slug_gem_test/app/views/blogs/_form.html.erb |