From b54a8458d5029b3494165b7430e21b3ae34ecc0c Mon Sep 17 00:00:00 2001 From: hellekin Date: Fri, 22 Jan 2021 05:32:15 +0100 Subject: Upgrade Rails and add StimulusJS support --- app/views/users/_user.html.erb | 3 +++ app/views/users/index.html.erb | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 app/views/users/_user.html.erb (limited to 'app/views/users') diff --git a/app/views/users/_user.html.erb b/app/views/users/_user.html.erb new file mode 100644 index 0000000..2da5239 --- /dev/null +++ b/app/views/users/_user.html.erb @@ -0,0 +1,3 @@ +
+ <%= user.name %> +
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 0d53728..3451981 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -1,4 +1,4 @@ -

Users#index

-

Find me in app/views/users/index.html.erb

+

Agent <%= current_agent %> Members

+

This agent counts (<%= pluralize(@users.count, "member") %>)

-

Show a table with Agent <%= current_agent %> members (<%= pluralize(@users.count, "user") %>), their roles, and ways to change them.

+<%= render partial: 'user', collection: @users %> -- cgit v1.2.3