From ca98987c1a14655aedb4bdcf8fef7311131ca1be Mon Sep 17 00:00:00 2001 From: David Gay Date: Fri, 28 May 2021 21:23:38 -0400 Subject: Monsters controller, activities index, and links to activities and items indexes --- app/views/activities/index.html.erb | 8 ++++++++ app/views/activities/show.html.erb | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 app/views/activities/index.html.erb (limited to 'app/views/activities') diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb new file mode 100644 index 0000000..593adca --- /dev/null +++ b/app/views/activities/index.html.erb @@ -0,0 +1,8 @@ +

Activities

+ +<% @activities.each do |activity| %> +
+
<%= link_to activity.name, activity_path(activity) %>
+

<%= activity.description %>

+
+<% end %> diff --git a/app/views/activities/show.html.erb b/app/views/activities/show.html.erb index 4516b51..50dbe4b 100644 --- a/app/views/activities/show.html.erb +++ b/app/views/activities/show.html.erb @@ -7,6 +7,6 @@ <% if @activity.whatnot %>
<%= JSON.pretty_generate(@activity.whatnot) %>
<% else %> -

Item has no additional data.

+

Activity has no additional data.

<% end %> -- cgit v1.2.3