1 2 3 4 5 6 7
<h1 class="text-xl">New Character</h1> <%= form_with model: @character do |f| %> <%= f.label :name, "Name" %> <%= f.text_field :name %> <%= f.submit "Create" %> <% end %>