Add following line of code in your routes.rb resources :orders
or add following line of code in routes.rb
match 'orders/:id/edit' => 'orders#edit', :as => :edit_order
I assume, your controller name as orders
and action edit
.
use following code for form
<% form_for(@order, :url => {:action => :update}) do |f| %>