Skip to content

Instantly share code, notes, and snippets.

@attatae
Last active August 29, 2015 13:58
Show Gist options
  • Save attatae/10139017 to your computer and use it in GitHub Desktop.
Save attatae/10139017 to your computer and use it in GitHub Desktop.
<div class="page-header">
<h1>All Profiles</h1>
</div>
<p>
<div class="tag_cloud">
<% tag_cloud Profile.interest_counts, %w{s m l} do |interest, css_class| %>
<%= link_to interest.name, interest_path(interest.name), class: css_class %>
<% end %>
</div>
</p>
<p>
<div class="tag_cloud">
<% tag_cloud Profile.skill_counts, %w{s m l} do |skill, css_class| %>
<%= link_to skill.name, skill_path(skill.name), class: css_class %>
<% end %>
</div>
</p>
<%= link_to 'New Profile', new_profile_path, class: "btn btn-primary" %>
<div id="post-btn-margin"><!--creates separation under button-->
</div>
<% @profiles.each do |profile| %>
<div class="profile">
<span id="profile-profile_name-underline"><span id="profile-index-profile_name"><%= link_to profile.profile_name, profile %></span></span>
<p>
<%= profile.interest_list %><span class ="admin">
| <%= link_to "Edit", edit_profile_path(profile) %> |
<%= link_to "Delete", profile, method: :delete, data: { confirm: "Are you sure?"} %>
</span>
</p>
<div class="meta">
<!--<span class="text">
<%= time_ago_in_words(profile.created_at) + " ago" %>
</span>-->
</div>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment