From d53c2b7971388026be5c42cd833f7e16781f2c18 Mon Sep 17 00:00:00 2001 From: nfoy Date: Tue, 22 Apr 2014 22:43:59 -0400 Subject: Figured out mailboxer for sending pms and updated individual message view. --- app/views/pms/_form.html.erb | 4 ---- app/views/pms/index.html.erb | 4 ++-- app/views/pms/show.html.erb | 4 ++-- 3 files changed, 4 insertions(+), 8 deletions(-) (limited to 'app/views/pms') diff --git a/app/views/pms/_form.html.erb b/app/views/pms/_form.html.erb index 480e308..e9a7c08 100644 --- a/app/views/pms/_form.html.erb +++ b/app/views/pms/_form.html.erb @@ -11,10 +11,6 @@ <% end %> -
- <%= f.label :author_id %>
- <%= f.text_field :author_id %> -
<%= f.label :recipient_id %>
<%= f.text_field :recipient_id %> diff --git a/app/views/pms/index.html.erb b/app/views/pms/index.html.erb index cb7fe4b..f5dfe02 100644 --- a/app/views/pms/index.html.erb +++ b/app/views/pms/index.html.erb @@ -15,8 +15,8 @@ <% @pms.each do |pm| %> - <%= pm.author %> - <%= pm.recipient %> + <%= pm.author.user_name %> + <%= pm.recipient.user_name %> <%= pm.message %> <%= link_to 'Show', pm %> <%= link_to 'Edit', edit_pm_path(pm) %> diff --git a/app/views/pms/show.html.erb b/app/views/pms/show.html.erb index 2a03716..595afce 100644 --- a/app/views/pms/show.html.erb +++ b/app/views/pms/show.html.erb @@ -1,11 +1,11 @@

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

Recipient: - <%= @pm.recipient %> + <%= @pm.recipient.user_name %>

-- cgit v1.2.3-2-g168b