I'm trying to turn this index file into two columns where the left side is the value names (i.e. "Be the change you wish to see in the world") and the right side are their respective categories, edit paths, and delete paths.
Ideally I'd like the value attributes to not shift according to the length of the value name, but instead be fixed. It should also be fixed to the first line of the name (if the name is really long the name would line break until finished).
I hope I didn't make it sounded too complicated. I think it should be simple I've just had a hard time finding the answer. Thanks for any help given!
<!-- Default bootstrap panel contents -->
<div id="values" class="panel panel-default">
<div class="panel-heading">Values</div>
<div class="panel-body">
<p>Subjective, Non-Measureable, Inspirational and/or Helpful</p>
</div>
<!-- Table -->
<table class="table">
<% @values.each do |value| %>
<% if value.user == current_user %>
<td><%= value.name %></td>
<td>
<b><%= value.categories %></b>
<%= link_to edit_value_path(value) do %>
<span class="glyphicon glyphicon-edit"></span>
<% end %>
<%= link_to value, method: :delete, data: { confirm: 'Are you sure?' } do %>
<span class="glyphicon glyphicon-trash"></span>
<% end %>
</td>
<% end %>
<% end %>
</table>
</div>