私のindex.html.erbには
<%= link_to 'Edit', edit_order_path(order) %>
注文内容を編集しようとすると、次のエラーが発生します。
NoMethodError in Order#index
undefined method `edit_order_path' for #<ActionView::Base:0x13f4aeb>
どうすればそれを克服できますか?
私のindex.html.erbには
<%= link_to 'Edit', edit_order_path(order) %>
注文内容を編集しようとすると、次のエラーが発生します。
NoMethodError in Order#index
undefined method `edit_order_path' for #<ActionView::Base:0x13f4aeb>
どうすればそれを克服できますか?