From 3ef73244d6acaa3a16f4c9c4c276d30cc2753f2a Mon Sep 17 00:00:00 2001 From: guntasgrewal Date: Sun, 27 Apr 2014 22:17:31 -0400 Subject: Fixed Alerts author field issue. --- app/views/alerts/_form.html.erb | 5 ----- app/views/alerts/show.html.erb | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'app/views') 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 @@ <% end %> - -
- <%= f.label :author_id %>
- <%= f.text_field :author_id %> -
<%= f.label :message %>
<%= 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 @@

Author: - <%# @alert.author %> + <%= @alert.author.user_name %>

-- cgit v1.2.3-2-g168b