Avant de modifier
erb:_form.html.erb
<%= form_with(model: @set, url: "/sets/create", local: true) do |f| %>
<div class="form-title">
<%= f.label :title, "Titre" %>
<%= f.text_field :title %>
</div>
<% end %>
Après l'édition
erb:_form.html.erb
<%= form_with(url: "/sets/create", local: true) do |f| %>
<div class="form-title">
<%= f.label :title, "Titre" %>
<%= f.text_field :title %>
</div>
<% end %>
Recommended Posts