I'm a novice to rails but I created a group of categories with the intention of using them as a filter for items in my application. However in listing them it seems like data that should be console only is showing up in my view. How do I get rid of this? What shows in the view
The code in my view are as follows:
<%= State.all.each do |state| %>
<%= link_to state.status, tickets_path(state: state.status) %>
<div class="badge">
<%= state.tickets.count %>
</div>
<% end %>
Where State is my "category" and Status is the "category name" and Ticket is the form submission or "item" so to speak.