Is it possible that Rails doesnt save an entry if the users input is blank and that when the user clicks on the entry key it does not redirect to the index site but skipes to the next input? Here i have an simple form, so maybe someone can tell me how he would do it! Thanks in advance!
%= form_for(@patient) do |f| %>
<div class="field">
<%= f.label :vorname %><br />
<%= f.text_field :vorname %>
</div>
<div class="field">
<%= f.label :nachnahme %><br />
<%= f.text_field :nachnahme %>
</div>
<div class="field">
<%= f.label :alter %><br />
<%= f.date_select :alter %>
</div>
<div class="field">
<%= f.label :ort %><br />
<%= f.text_field :ort %>
</div>
<div class="field">
<%= f.label :strasse %><br />
<%= f.text_field :strasse %>
</div>
<div class="field">
<%= f.label :telefon %><br />
<%= f.text_field :telefon %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>