summaryrefslogtreecommitdiff
path: root/app/views/alerts
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/alerts')
-rw-r--r--app/views/alerts/_form.html.erb5
-rw-r--r--app/views/alerts/show.html.erb2
2 files changed, 1 insertions, 6 deletions
diff --git a/app/views/alerts/_form.html.erb b/app/views/alerts/_form.html.erb
index b60eaf2..e7a2444 100644
--- a/app/views/alerts/_form.html.erb
+++ b/app/views/alerts/_form.html.erb
@@ -10,11 +10,6 @@
</ul>
</div>
<% end %>
-
- <div class="field">
- <%= f.label :author_id %><br>
- <%= f.text_field :author_id %>
- </div>
<div class="field">
<%= f.label :message %><br>
<%= f.text_area :message %>
diff --git a/app/views/alerts/show.html.erb b/app/views/alerts/show.html.erb
index 59d8094..398a10e 100644
--- a/app/views/alerts/show.html.erb
+++ b/app/views/alerts/show.html.erb
@@ -1,6 +1,6 @@
<p>
<strong>Author:</strong>
- <%# @alert.author %>
+ <%= @alert.author.user_name %>
</p>
<p>