summaryrefslogtreecommitdiff
path: root/app/views/pms
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/pms')
-rw-r--r--app/views/pms/_form.html.erb29
-rw-r--r--app/views/pms/edit.html.erb6
-rw-r--r--app/views/pms/index.html.erb31
-rw-r--r--app/views/pms/index.json.jbuilder4
-rw-r--r--app/views/pms/new.html.erb5
-rw-r--r--app/views/pms/show.html.erb19
-rw-r--r--app/views/pms/show.json.jbuilder1
7 files changed, 0 insertions, 95 deletions
diff --git a/app/views/pms/_form.html.erb b/app/views/pms/_form.html.erb
deleted file mode 100644
index 480e308..0000000
--- a/app/views/pms/_form.html.erb
+++ /dev/null
@@ -1,29 +0,0 @@
-<%= form_for(@pm) do |f| %>
- <% if @pm.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@pm.errors.count, "error") %> prohibited this pm from being saved:</h2>
-
- <ul>
- <% @pm.errors.full_messages.each do |msg| %>
- <li><%= msg %></li>
- <% end %>
- </ul>
- </div>
- <% 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>
- <div class="field">
- <%= f.label :message %><br>
- <%= f.text_area :message %>
- </div>
- <div class="actions">
- <%= f.submit %>
- </div>
-<% end %>
diff --git a/app/views/pms/edit.html.erb b/app/views/pms/edit.html.erb
deleted file mode 100644
index 074a4fd..0000000
--- a/app/views/pms/edit.html.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-<h1>Editing pm</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Show', @pm %> |
-<%= link_to 'Back', pms_path %>
diff --git a/app/views/pms/index.html.erb b/app/views/pms/index.html.erb
deleted file mode 100644
index cb7fe4b..0000000
--- a/app/views/pms/index.html.erb
+++ /dev/null
@@ -1,31 +0,0 @@
-<h1>Listing pms</h1>
-
-<table>
- <thead>
- <tr>
- <th>Author</th>
- <th>Recipient</th>
- <th>Message</th>
- <th></th>
- <th></th>
- <th></th>
- </tr>
- </thead>
-
- <tbody>
- <% @pms.each do |pm| %>
- <tr>
- <td><%= pm.author %></td>
- <td><%= pm.recipient %></td>
- <td><%= pm.message %></td>
- <td><%= link_to 'Show', pm %></td>
- <td><%= link_to 'Edit', edit_pm_path(pm) %></td>
- <td><%= link_to 'Destroy', pm, method: :delete, data: { confirm: 'Are you sure?' } %></td>
- </tr>
- <% end %>
- </tbody>
-</table>
-
-<br>
-
-<%= link_to 'New Pm', new_pm_path %>
diff --git a/app/views/pms/index.json.jbuilder b/app/views/pms/index.json.jbuilder
deleted file mode 100644
index fcfca84..0000000
--- a/app/views/pms/index.json.jbuilder
+++ /dev/null
@@ -1,4 +0,0 @@
-json.array!(@pms) do |pm|
- json.extract! pm, :id, :author_id, :recipient_id, :message
- json.url pm_url(pm, format: :json)
-end
diff --git a/app/views/pms/new.html.erb b/app/views/pms/new.html.erb
deleted file mode 100644
index 29e24ec..0000000
--- a/app/views/pms/new.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<h1>New pm</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Back', pms_path %>
diff --git a/app/views/pms/show.html.erb b/app/views/pms/show.html.erb
deleted file mode 100644
index 5ee483f..0000000
--- a/app/views/pms/show.html.erb
+++ /dev/null
@@ -1,19 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<p>
- <strong>Author:</strong>
- <%= @pm.author %>
-</p>
-
-<p>
- <strong>Recipient:</strong>
- <%= @pm.recipient %>
-</p>
-
-<p>
- <strong>Message:</strong>
- <%= @pm.message %>
-</p>
-
-<%= 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
deleted file mode 100644
index 94252e9..0000000
--- a/app/views/pms/show.json.jbuilder
+++ /dev/null
@@ -1 +0,0 @@
-json.extract! @pm, :id, :author_id, :recipient_id, :message, :created_at, :updated_at