trying to update a table with form input from a select box and getting
this error: “Options does not specify :except or :only”
#View:
<%= start_form_tag :action => ‘order_update’, :id => @order %>
Status
None Paid Shipped
None Paid Shipped
<%= submit_tag 'Update' %>
<%= end_form_tag %>
#controller:
def order_update
@order = Order.find(params[:id])
if @order.attributes(params[:order])
flash[:notice] = 'order was successfully updated.'
redirect_to :action => 'order_detail', :id => @order
else
render :action => 'edit'
end
end