Browse files

Changed the links to admin_products / admin_orders etc

  • Loading branch information...
1 parent f12c830 commit 679241cdc77a971c60f222d3c1a669481d9229ad @florida committed Nov 12, 2012
View
2 app/views/admin/orders/edit.html.erb
@@ -3,4 +3,4 @@
<%= render 'form' %>
<%= link_to 'Show', @order %> |
-<%= link_to 'Back', orders_path %>
+<%= link_to 'Back', admin_orders_path %>
View
8 app/views/admin/orders/index.html.erb
@@ -17,13 +17,13 @@
<td><%= order.last_name %></td>
<td><%= order.email %></td>
<td><%= order.address %></td>
- <td><%= link_to 'Show', order %></td>
- <td><%= link_to 'Edit', edit_order_path(order) %></td>
- <td><%= link_to 'Destroy', order, method: :delete, data: { confirm: 'Are you sure?' } %></td>
+ <td><%= link_to 'Show', admin_order_path(order) %></td>
+ <td><%= link_to 'Edit', edit_admin_order_path(order) %></td>
+ <td><%= link_to 'Destroy', admin_order_path(order), method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
-<%= link_to 'New Order', new_order_path %>
+<%= link_to 'New Order', new_admin_order_path %>
View
2 app/views/admin/orders/new.html.erb
@@ -2,4 +2,4 @@
<%= render 'form' %>
-<%= link_to 'Back', orders_path %>
+<%= link_to 'Back', admin_orders_path %>
View
4 app/views/admin/orders/show.html.erb
@@ -21,5 +21,5 @@
</p>
-<%= link_to 'Edit', edit_order_path(@order) %> |
-<%= link_to 'Back', orders_path %>
+<%= link_to 'Edit', edit_admin_order_path(@order) %> |
+<%= link_to 'Back', admin_orders_path %>
View
2 app/views/admin/products/edit.html.erb
@@ -3,4 +3,4 @@
<%= render 'form' %>
<%= link_to 'Show', @product %> |
-<%= link_to 'Back', products_path %>
+<%= link_to 'Back', admin_products_path %>
View
8 app/views/admin/products/index.html.erb
@@ -17,13 +17,13 @@
<td><%= product.description %></td>
<td><%= product.price %></td>
<td><%= product.stock_no %></td>
- <td><%= link_to 'Show', product %></td>
- <td><%= link_to 'Edit', edit_product_path(product) %></td>
- <td><%= link_to 'Destroy', product, method: :delete, data: { confirm: 'Are you sure?' } %></td>
+ <td><%= link_to 'Show', admin_product_path(product) %></td>
+ <td><%= link_to 'Edit', edit_admin_product_path(product) %></td>
+ <td><%= link_to 'Destroy', admin_product_path(product), method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
-<%= link_to 'New Product', new_product_path %>
+<%= link_to 'New Product', new_admin_product_path %>
View
4 app/views/admin/products/show.html.erb
@@ -21,5 +21,5 @@
</p>
-<%= link_to 'Edit', edit_product_path(@product) %> |
-<%= link_to 'Back', products_path %>
+<%= link_to 'Edit', edit_admin_product_path(@product) %> |
+<%= link_to 'Back', admin_products_path %>

0 comments on commit 679241c

Please sign in to comment.