diff options
Diffstat (limited to 'app/views/pms')
-rw-r--r-- | app/views/pms/_form.html.erb | 4 | ||||
-rw-r--r-- | app/views/pms/index.html.erb | 4 | ||||
-rw-r--r-- | app/views/pms/show.html.erb | 4 |
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> |