From 67d95e5b92e3d19765c7ccaf5460737ffe2173f4 Mon Sep 17 00:00:00 2001
From: nfoy
<%= f.text_area :message %>
+
+ <%= f.text_area :subject %>
+
+ <%= f.text_field :conversation_id %>
+ Author
Recipient
Message
+ Subject
+ Conversation
@@ -18,6 +20,8 @@
<%= pm.author %>
<%= pm.recipient %>
<%= pm.message %>
+ <%= pm.subject %>
+ <%= pm.conversation %>
<%= link_to 'Show', pm %>
<%= link_to 'Edit', edit_pm_path(pm) %>
<%= link_to 'Destroy', pm, method: :delete, data: { confirm: 'Are you sure?' } %>
diff --git a/app/views/pms/index.json.jbuilder b/app/views/pms/index.json.jbuilder
index fcfca84..3dc1abb 100644
--- a/app/views/pms/index.json.jbuilder
+++ b/app/views/pms/index.json.jbuilder
@@ -1,4 +1,4 @@
json.array!(@pms) do |pm|
- json.extract! pm, :id, :author_id, :recipient_id, :message
+ json.extract! pm, :id, :author_id, :recipient_id, :message, :subject, :conversation_id
json.url pm_url(pm, format: :json)
end
diff --git a/app/views/pms/show.html.erb b/app/views/pms/show.html.erb
index 5ee483f..2f3b944 100644
--- a/app/views/pms/show.html.erb
+++ b/app/views/pms/show.html.erb
@@ -15,5 +15,15 @@
<%= @pm.message %>
+ Subject: + <%= @pm.subject %> +
+ ++ Conversation: + <%= @pm.conversation %> +
+ <%= link_to 'Edit', edit_pm_path(@pm) %> | <%= link_to 'Back', pms_path %> diff --git a/app/views/pms/show.json.jbuilder b/app/views/pms/show.json.jbuilder index 94252e9..4e69026 100644 --- a/app/views/pms/show.json.jbuilder +++ b/app/views/pms/show.json.jbuilder @@ -1 +1 @@ -json.extract! @pm, :id, :author_id, :recipient_id, :message, :created_at, :updated_at +json.extract! @pm, :id, :author_id, :recipient_id, :message, :subject, :conversation_id, :created_at, :updated_at -- cgit v1.2.3-54-g00ecf