summaryrefslogtreecommitdiff
path: root/app/views/pms
diff options
context:
space:
mode:
authornfoy <nfoy@purdue.edu>2014-04-22 22:43:59 -0400
committernfoy <nfoy@purdue.edu>2014-04-22 22:43:59 -0400
commitd53c2b7971388026be5c42cd833f7e16781f2c18 (patch)
tree90e5946dc5dbdad4cc60d954e1c6642cc3c64d16 /app/views/pms
parentfede678430be34f854bcf7e39c29d5e5ecea929b (diff)
Figured out mailboxer for sending pms and updated individual message view.
Diffstat (limited to 'app/views/pms')
-rw-r--r--app/views/pms/_form.html.erb4
-rw-r--r--app/views/pms/index.html.erb4
-rw-r--r--app/views/pms/show.html.erb4
3 files changed, 4 insertions, 8 deletions
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
@@ -12,10 +12,6 @@
<% end %>
<div class="field">
- <%= f.label :author_id %><br>
- <%= f.text_field :author_id %>
- </div>
- <div class="field">
<%= f.label :recipient_id %><br>
<%= f.text_field :recipient_id %>
</div>
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 @@
<tbody>
<% @pms.each do |pm| %>
<tr>
- <td><%= pm.author %></td>
- <td><%= pm.recipient %></td>
+ <td><%= pm.author.user_name %></td>
+ <td><%= pm.recipient.user_name %></td>
<td><%= pm.message %></td>
<td><%= link_to 'Show', pm %></td>
<td><%= link_to 'Edit', edit_pm_path(pm) %></td>
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 @@
<p>
<strong>Author:</strong>
- <%= @pm.author %>
+ <%= @pm.author.user_name %>
</p>
<p>
<strong>Recipient:</strong>
- <%= @pm.recipient %>
+ <%= @pm.recipient.user_name %>
</p>
<p>