Listing tickets

<% @tickets.each do |ticket| %> <% end %>
Title Number Issue
<%=h ticket.title %> <%=h ticket.number -%> <%= ticket.issue.html_safe -%> <%= link_to 'Show', ticket %> <%= link_to 'Edit', edit_ticket_path(ticket) %> <%= button_to 'Destroy', ticket, :confirm => 'Are you sure?', :method => :delete %>

<% unless current_user.nil? %> <% unless current_user.admin_id == 3 %> <%= link_to 'New ticket', support_path %> <% end %> <% end %>