Let me prefix this by saying I am not a Rails/Ruby developer - I am just doing a small amount of work using an internal tool which generates Rails code. I am trying my best with it though!
So I am trying to iterate over an object and print all of its fields.
Currently I have this implemented like so :
<% @subject.Association.each do |horse| %>
<tr>
<td>
<%= horse['Name'].to_s %>
<%= horse['Size'] %>
</td>
</tr>
<% end %>
This works, except it will print
Output > ["Horse1"]["2 hands"]
instead of
Output > Horse 1 2 hands.
What can I do to remove the superfluous brackets and quotation marks?
Apologies if I have left out any pertinent details - as I say, still new to Ruby and learning :).