views:

42

answers:

1
<%= link_to 'Edit', edit_order_path(@order) %>

Is it possible to wire this link to the modify action of the Orders controller (instead of the edit action) without changing this syntax:

edit_order_path(@order)
+2  A: 

routes.rb:

map.edit_order "order/modify/:id" ,
:controller => "order" ,
:action => "modify" ,
:id => /\d+/
eggdrop