I have a scaffold generated index.html.erb and am wondering if it is okay that is does not have basic HTML structure?
This is my code:
<% provide(:title, "Signing Up") %>
<h1>Signing Up</h1>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<%= form_for(:reader, url: readers_path) do |f| %>
<%= f.label :email %><br>
<%= f.email_field :email, class: 'form-control' %>
</p>
<p>
<%= f.label :password %><br>
<%= f.password_field :password_digest, class: 'form-control' %>
</p>
<%= f.submit "Signing Up", class: "btn btn-primary" %>
<% end %>
</div>
</div>
I don't see usual HTML, <body>
, <head>
tags etc. Can I add it or is it not necessary?