<h1><%= @resource.title %></h1>
<% if @resource.user %>
  <p>Added by <%= @resource.user_name %>.</p>
<% end %>

<p><%= @resource.language_name %></p>

<h3>Topics:</h3>
<ul>
  <% @resource.topics.each do |topic| %>
    <li><%= topic.name %></li>
  <% end %>
</ul>
<p>URL: <%= link_to @resource.url, @resource.url %></p>

<h3>What it's about:</h3>
<p><%= @resource.description %></p>


<%= link_to "Edit this Resource", edit_user_resource_path(current_user, @resource) if correct_user? %>
<%= button_to "Delete this Resource", user_resource_path(current_user, @resource), method: 'delete' if correct_user?%>

<h1><%= @resource.title %></h1>
<% if @resource.user %>
  <p>Added by <%= @resource.user_name %>.</p>
<% end %>

<p><%= @resource.language_name %></p>

<h3>Topics:</h3>
<ul>
  <% @resource.topics.each do |topic| %>
    <li><%= topic.name %></li>
  <% end %>
</ul>
<p>URL: <%= link_to @resource.url, @resource.url %></p>

<h3>What it's about:</h3>
<p><%= @resource.description %></p>


<%= link_to "Edit this Resource", edit_resource_path(@resource) if correct_user? %>
<%= button_to "Delete this Resource", resource_path(@resource), method: 'delete' if correct_user?%>

Fix resource paths on show page.
Fix resource paths on show page.
