search for: move_item_up

Displaying 1 result from an estimated 1 matches for "move_item_up".

2006 Jul 11
0
using acts_as_list storing the information in a session
..., and I do not want to store the order in the database untill it is completely filled out. I have order_items that I am adding to the order, and I have used the acts_as_list within the order_item model. My problem comes when i try and rearrange the order_items using the following code: def move_item_up @order = find_order @order.order_items[params[:id].to_i].move_higher @order.reload session[:order] = @order render:partial => ''order_contents'' end It gives me the following error: ActiveRecord::RecordNotFound (Couldn''t find Order without an ID):...