Seems to me acts_as_list has a bug -- I have data where the row id is a random alphaNumeric, not a simple integer. Using acts_as_list with a scope of a related model id, acts_as_list crashes the app due to a faulty query in MySQL something like this:
class LineItem < ActiveRecord::Base belongs_to :order acts_as_list :scope => :order_id end Unknown column 'UXPzIdeIuIFkz6n' in 'where clause': UPDATE `line_items` SET position = (position - 1) WHERE (order_id = UXPzIdeIuIFkz6n AND position > 5) I've been trying several ways to force substition to generate those needed quotes myself, but so far no luck. Anyone battle & solve this? Thx. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/90d4263bed35117280a5e2af66c86980%40ruby-forum.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.

