I am trying to iterate through a set of records. However, at the end of the iteration, rails displays the full array.
<%= @portfolio_item.technologies.each do |technology| %>
<p><%= technology.name %></p>
<% end %>
I am trying to iterate through a set of records. However, at the end of the iteration, rails displays the full array.
<%= @portfolio_item.technologies.each do |technology| %>
<p><%= technology.name %></p>
<% end %>
Replace this line
<%= @portfolio_item.technologies.each do |technology| %>
with this
<% @portfolio_item.technologies.each do |technology| %>
<%= %>
will evaluate the expression and returns the array.