Closed mitchellcarroll closed 7 years ago
Could you add a code snippet of the related .html.erb file?
Try this and let me know what you see:
<% @assets.each do |asset| %> <%= link_to "#{asset.category} - #{asset.value}, asset_path(asset) %> <% end %>
thank you! that worked.
Hey-
I currently have both of my models displaying on a single page. Each model has the same two keys: "category" and "value". At the moment I have the "category" being displayed under the model name. Is there a way to also display the "value" next to the "category"?