Skip to content

Instantly share code, notes, and snippets.

@alieseparker
Created September 26, 2014 22:29
Show Gist options
  • Save alieseparker/5ce635289234dad89c58 to your computer and use it in GitHub Desktop.
Save alieseparker/5ce635289234dad89c58 to your computer and use it in GitHub Desktop.
<h2>My Portfolio</h2>
<ul>
<% @projects.each do |project| %>
<li class="project" id="<%= dom_id(project) %>">
<h3><%= project.name %></h3>
<p><%= project.technologies_used %></p>
<div class="project_nav", id="project_nav_<%= dom_id(project)%>" >
<%= link_to 'Show', project %> |
<%= link_to 'Edit', edit_project_path(project) %> |
<%= link_to 'Destroy', project, method: :delete, data: { confirm: 'Are you sure?' } %>
</div>
</li>
<% end %>
</ul>
<br />
<%= link_to 'New Project', new_project_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment