room resources

This commit is contained in:
Josh
2018-05-29 16:51:18 -04:00
parent 32ec2bacce
commit de44d8024b
5 changed files with 25 additions and 14 deletions

View File

@ -8,7 +8,7 @@
<td>
<div><%= room.name %></div>
<div class="small text-muted">
<i>Created on <%= room.created_at.strftime("%B #{room.created_at.day.ordinalize}, %Y") %></i>
<i>Created on <%= room.created_at.strftime("%B #{room.created_at.day.ordinalize}, %Y.") %></i>
</div>
</td>
<td class="text-right">
@ -17,7 +17,9 @@
<div class="dropdown-menu dropdown-menu-right">
<a href="javascript:void(0)" class="dropdown-item"><i class="dropdown-icon fe fe-tag"></i> Action </a>
<a href="javascript:void(0)" class="dropdown-item"><i class="dropdown-icon fe fe-edit-2"></i> Another action </a>
<a href="javascript:void(0)" class="dropdown-item"><i class="dropdown-icon fe fe-trash"></i> Delete</a>
<%= button_to room, method: :delete, data: { confirm: 'Are you sure?' }, class: "dropdown-item" do %>
<i class="dropdown-icon fe fe-trash"></i> Delete
<% end %>
</div>
</div>
</td>

View File

@ -8,7 +8,7 @@
</div>
<hr class="small-rule">
<%= form_for(:room, url: create_room_path) do |f| %>
<%= form_for(:room, url: rooms_path) do |f| %>
<div class="input-icon">
<span class="input-icon-addon">
<i class="fas fa-chalkboard-teacher"></i>