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 %>
<div>
Status <br />
<select name="order[shipping_status]">
<option>None</option>
<option>Paid</option>
<option>Shipped</option>
</select>
<%= submit_tag ''Update'' %>
<%= end_form_tag %>
</div>
#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
--
Posted via http://www.ruby-forum.com/.