Creating a Phoenix framework application where developers can add topics for discussion and everything was running smoothly until I added this code inside of templates/view/index.html.eex:
<h5>Topics</h5>
<ul class="collection">
<%= for topic <- @topics do %>
<li class="collection-item">
<%= topic.title %>
</li>
<% end %>
</ul>
<div class="fixed-action-btn">
<%= link to: topic_path(@conn, :new), class: "btn-floating btn-large waves-effect waves-light red" %>
<i class="material-icons">add</i>
<% end %>
</div>
The problem does seem to be the syntax above, but how do I go about applying the plus icon inside of the round red button?
In my terminal I am getting:
== Compilation error in file web/views/topic_view.ex == ** (EEx.SyntaxError) web/templates/topic/index.html.eex:14: unexpected end of expression <% end %>
I am working with: Phoenix v1.2.5