It's happening on teh lp.save line. Which is weird, because I have the same code else where (slightly different though) for re-sorting the link_pages.
the menu bars and link pages are a has and belongs to many relationship
this is in the menu_bar/destroy method
 @menu_bar.link_pages.each do |lp|
      lp.sequence = LinkPage::NOT_USED
      lp.save
    end
also, rails 2.3.8
 
     
     
    