kissingcomputer/app/views/articles/_form.html.erb
2026-01-10 16:17:07 +00:00

28 lines
539 B
Text

<%= form_with model: @article do |form| %>
<% if form.object.errors.any? %>
<p class="error"><%= form.object.errors.full_messages.first %></p>
<% end %>
<p>
<%= form.label :title %><br>
<%= form.text_field :title %>
</p>
<p>
<%= form.label :text %><br>
<%= form.rich_textarea :text %>
</p>
<p>
<%= form.label :mood %><br>
<%= form.rich_textarea :mood %>
</p>
<p>
<%= form.label :music %><br>
<%= form.rich_textarea :music %>
</p>
<p>
<%= form.submit %>
</p>
<% end %>