diff --git a/app/views/objects/index.html.erb b/app/views/objects/index.html.erb
index 35f6291..09a6aa5 100644
--- a/app/views/objects/index.html.erb
+++ b/app/views/objects/index.html.erb
@@ -16,8 +16,8 @@ content_for :title do 'Object List' end
<% @objects.each do |object| %>
<%= object['_id'] %> |
- <%= link_to 'Edit', "/objects/#{object['_id']}/edit" if can?(:update, 'objects') %> |
- <%= link_to 'Destroy', "/objects/#{object['_id']}", method: :delete, data: { confirm: 'Are you sure?' } if can?(:delete, 'objects') %> |
+ <%= link_to 'Edit', {controller: 'objects', action: 'edit', id: object['_id']} if can?(:update, 'objects') %> |
+ <%= link_to 'Destroy', {controller: 'objects', action: 'destroy', id: object['_id']}, method: :delete, data: { confirm: 'Are you sure?' } if can?(:delete, 'objects') %> |
<% end %>
diff --git a/app/views/provisions/index.html.erb b/app/views/provisions/index.html.erb
index 5715dc0..6a79d7c 100644
--- a/app/views/provisions/index.html.erb
+++ b/app/views/provisions/index.html.erb
@@ -16,8 +16,8 @@ content_for :title do 'Provision List' end
<% @provisions.each do |provision| %>
<%= provision['_id'] %> |
- <%= link_to 'Edit', "/provisions/#{provision['_id']}/edit" if can?(:update, 'provisions') %> |
- <%= link_to 'Destroy', "/provisions/#{provision['_id']}", method: :delete, data: { confirm: 'Are you sure?' } if can?(:delete, 'provisions') %> |
+ <%= link_to 'Edit', {controller: 'provisions', action: 'edit', id: provision['_id']} if can?(:update, 'provisions') %> |
+ <%= link_to 'Destroy', {controller: 'provisions', action: 'destroy', id: provision['_id']}, method: :delete, data: { confirm: 'Are you sure?' } if can?(:delete, 'provisions') %> |
<% end %>
diff --git a/app/views/virtual_parameters/index.html.erb b/app/views/virtual_parameters/index.html.erb
index 271c5bd..a4e56de 100644
--- a/app/views/virtual_parameters/index.html.erb
+++ b/app/views/virtual_parameters/index.html.erb
@@ -16,8 +16,8 @@ content_for :title do 'Virtual Parameter List' end
<% @virtual_parameters.each do |virtual_parameter| %>
<%= virtual_parameter['_id'] %> |
- <%= link_to 'Edit', "/virtual_parameters/#{virtual_parameter['_id']}/edit" if can?(:update, 'virtual_parameters') %> |
- <%= link_to 'Destroy', "/virtual_parameters/#{virtual_parameter['_id']}", method: :delete, data: { confirm: 'Are you sure?' } if can?(:delete, 'virtual_parameters') %> |
+ <%= link_to 'Edit', {controller: 'virtual_parameters', action: 'edit', id: virtual_parameter['_id']} if can?(:update, 'virtual_parameters') %> |
+ <%= link_to 'Destroy', {controller: 'virtual_parameters', action: 'destroy', id: virtual_parameter['_id']}, method: :delete, data: { confirm: 'Are you sure?' } if can?(:delete, 'virtual_parameters') %> |
<% end %>