From cd58e7c0811fd081c7e4ce4b3b5c47e6caad7d40 Mon Sep 17 00:00:00 2001 From: tykayn Date: Tue, 27 Aug 2019 17:08:52 +0200 Subject: [PATCH] :zap: basic CRUD of groups, needs members to add --- app/views/user_groups/index.html.haml | 6 +++--- app/views/user_groups/show.html.haml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/user_groups/index.html.haml b/app/views/user_groups/index.html.haml index aa2229c33..fc44d1228 100644 --- a/app/views/user_groups/index.html.haml +++ b/app/views/user_groups/index.html.haml @@ -10,7 +10,7 @@ %th Name %th Createat %th Visibility - %th Members + %th Creator ID %th %th %th @@ -19,9 +19,9 @@ - @user_groups.each do |user_group| %tr %td= user_group.name - %td= user_group.createAt + %td= user_group.created_at %td= user_group.visibility - %td= user_group.members + %td= user_group.account_id %td= link_to 'Show', user_group %td= link_to 'Edit', edit_user_group_path(user_group) %td= link_to 'Destroy', user_group, :method => :delete, :data => { :confirm => 'Are you sure?' } diff --git a/app/views/user_groups/show.html.haml b/app/views/user_groups/show.html.haml index 968f52968..1c371f02d 100644 --- a/app/views/user_groups/show.html.haml +++ b/app/views/user_groups/show.html.haml @@ -5,13 +5,13 @@ = @user_group.name %p %b Createat: - = @user_group.createAt + = @user_group.created_at %p %b Visibility: = @user_group.visibility %p - %b Members: - = @user_group.members + %b Creator: + = @user_group.account_id = link_to 'Edit', edit_user_group_path(@user_group) \|