Can edit_order_path be connected to an "edit" action (not an "edit action") of the Orders controller?

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

      

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

edit_order_path(@order)

      

+1


a source to share


1 answer


routes.rb:



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

      

+2


a source







All Articles