Just starting out with RoR and trying to customize my form with CSS classes. Here's what I have so far:
<%= form_tag :action => 'create' do %>
<p><label for = "name">Name</label>:
<%= text_field 'books', 'name' %></p>
<div class="form-control">
<p><label for = "author">Author</label>:
<%= text_field 'books', 'author'%></p>
</div>
<p><label for = "price">Price</label><br/>
<%= text_area 'books', 'price'%></p>
<%= submit_tag "Create" %>
<% end -%>
I'm having trouble getting the form controls to accept classes like
class="form-control mb-4 col-10" placeholder="Patient name"
, similar to <input type="text" th:field="*{name}" class="form-control mb-4 col-10" placeholder="Patient name">
. Any suggestions on how to style this with CSS?