diff options
Diffstat (limited to 'app/views/sessions/index.html.erb')
-rw-r--r-- | app/views/sessions/index.html.erb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/views/sessions/index.html.erb b/app/views/sessions/index.html.erb new file mode 100644 index 0000000..707a47d --- /dev/null +++ b/app/views/sessions/index.html.erb @@ -0,0 +1,27 @@ +<h1>Listing sessions</h1> + +<table> + <thead> + <tr> + <th>User</th> + <th></th> + <th></th> + <th></th> + </tr> + </thead> + + <tbody> + <% @sessions.each do |session| %> + <tr> + <td><%= session.user %></td> + <td><%= link_to 'Show', session %></td> + <td><%= link_to 'Edit', edit_session_path(session) %></td> + <td><%= link_to 'Destroy', session, method: :delete, data: { confirm: 'Are you sure?' } %></td> + </tr> + <% end %> + </tbody> +</table> + +<br> + +<%= link_to 'New Session', new_session_path %> |