Displaying 1 result from an estimated 1 matches for "order_cont".
Did you mean:
  order_cost
  
2006 Jul 11
0
using acts_as_list storing the information in a session
..._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):
    /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:939:in 
`find_from_ids''
    /usr/local/lib/ruby/gems/1.8/gems/activerecord-1...