Recreated user forms, updated abilities, linked cards and users

This commit is contained in:
2012-10-14 06:23:35 -07:00
parent 0254f9aa2c
commit d1ef1e7db9
12 changed files with 204 additions and 11 deletions

View File

@@ -8,8 +8,9 @@
</head>
<body>
<div id="header">
<%= link_to 'Cards', cards_path if user_signed_in? %>
<%= link_to 'Logs', door_logs_path if user_signed_in? %>
<%= link_to 'Users', users_path if can? :read, User %>
<%= link_to 'Cards', cards_path if can? :read, Card %>
<%= link_to 'Logs', door_logs_path if can? :read, DoorLog %>
<%= link_to 'Sign out', destroy_user_session_path, :method => :delete if user_signed_in? %>
<%= link_to 'Sign in', new_user_session_path unless user_signed_in? %>
</div>