I’m working on a Sinatra app. Part of the code will show up in the browser while the other part will not and I can’t figure out why.
<h1>Welcome <%=@user.username%>!</h1>
<h2>Your Clients:</h2>
<%if @user.clients.empty?%>
<h3> You have no clients. Add a client using the link below.</h3>
<h2><a href="/clients/new">Add Client</a></h2>
<% else %>
<% @clients.each do |client| %>
<ul>
<li><a href="/clients/<%=client.id%>"><%= client.name %></a></li>
</ul>
<% end %>
<% end %>
<h1>
and <h2>
at the top of the page show in the browser but nothing else will.
`s are rendered.
– Ry- Jan 24 '18 at 02:04and
– Ryo123 Jan 24 '18 at 18:37show up on the Source code for HTML