aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-11-04 14:53:27 +0000
committerLouise Crow <louise.crow@gmail.com>2014-12-12 16:47:14 +0000
commit081c419f665db454b98d8edb60eb67d9d8884c07 (patch)
tree40ec7787d131febcf9de91968af9cac7dba89c08 /app
parentdcfa7fd733008cd4b0bf066729df4b232342c65b (diff)
RESTful routing for editing and updating.
Diffstat (limited to 'app')
-rw-r--r--app/views/admin_request/_some_annotations.html.erb2
-rw-r--r--app/views/admin_request/edit.html.erb2
-rw-r--r--app/views/admin_request/show.html.erb4
3 files changed, 4 insertions, 4 deletions
diff --git a/app/views/admin_request/_some_annotations.html.erb b/app/views/admin_request/_some_annotations.html.erb
index 4fd313451..f4ec63e39 100644
--- a/app/views/admin_request/_some_annotations.html.erb
+++ b/app/views/admin_request/_some_annotations.html.erb
@@ -58,4 +58,4 @@
<% end %>
<% else %>
<p>None yet.</p>
-<% end %>
+<% end %>
diff --git a/app/views/admin_request/edit.html.erb b/app/views/admin_request/edit.html.erb
index 68aeb4961..db0b54655 100644
--- a/app/views/admin_request/edit.html.erb
+++ b/app/views/admin_request/edit.html.erb
@@ -2,7 +2,7 @@
<%= error_messages_for 'info_request' %>
-<%= form_tag admin_request_update_path(@info_request) do %>
+<%= form_tag admin_request_path(@info_request), :method => :put do %>
<p><label for="info_request_title"><strong>Title</strong></label> (warning: editing this will break URLs right now)<br/>
<%= text_field 'info_request', 'title', :size => 50 %></p>
diff --git a/app/views/admin_request/show.html.erb b/app/views/admin_request/show.html.erb
index 38cd06b64..2ca4f5733 100644
--- a/app/views/admin_request/show.html.erb
+++ b/app/views/admin_request/show.html.erb
@@ -15,7 +15,7 @@
<thead>
<tr>
<td colspan="2">
- <%= link_to 'Edit metadata', admin_request_edit_path(@info_request), :class => "btn" %>
+ <%= link_to 'Edit metadata', edit_admin_request_path(@info_request), :class => "btn" %>
</td>
</tr>
</thead>
@@ -100,7 +100,7 @@
<tfoot>
<tr>
<td colspan="2">
- <%= link_to 'Edit metadata', admin_request_edit_path(@info_request), :class => "btn" %>
+ <%= link_to 'Edit metadata', edit_admin_request_path(@info_request), :class => "btn" %>
</td>
</tr>
</tfoot>