1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-05-15 17:59:39 +00:00

Finished setting owner for tournamenr and protecting paths

This commit is contained in:
2015-10-26 16:31:45 -04:00
parent ad9ea9dc42
commit d18e729012
16 changed files with 109 additions and 86 deletions

View File

@@ -7,7 +7,7 @@
<br>
<% end %>
<br>
<% if user_signed_in? %>
<% if tournament_permissions(@tournament) %>
<%= form_for(@tournament) do |f| %>
<div class="field">
<%= f.label :weigh_in_ref %><br>
@@ -56,8 +56,8 @@
</tbody>
</table>
<%= hidden_field_tag :tournament, @tournament_id %>
<% if user_signed_in? %>
<% if tournament_permissions(@tournament) %>
<%= submit_tag "Save", :class=>"btn btn-success"%>
<% end %>
<% end %>
<% end %>
<% end %>