f. label is overwriting the information that is in f.text_field

Asked

Viewed 40 times

0

  <div class="input-field col s12">
    <%= f.label "Número do SUS" %>
    <%=f.text_field :sus_number %>
  </div>

  <div class="input-field col s12">
    <%= f.label "Paciente"%>
    <%= f.text_field :name, :class => 'form-control' %>
  </div>

Como fica na edição

  • How to fix this?

  • Try using a line break tag between them

  • It didn’t work. I used <br></br> and nothing

  • this appears to be CSS problem and not Rails problem.

  • <br> is an orphan tag, that is, there is no corresponding closure (such as <p></p>).

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.