- Partials for HABTM
- has_and_belongs_to_many :comps
- has_and_belongs_to_many :users
- def index
- @user = User.find(current_user.id)
- @comps = @user.comps
- end
- <%= render @comps %>
- <tr>
- <span class="content"><%= comp.name %></span>
- <td>
- <%= link_to "delete", comp, :method => :delete,
- :confirm => "You sure?",
- :title => comp.name %>
- </td>
- </tr>