search for: product_image_id

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

2006 Jul 28
2
has_many :through with :order column on the join model
...rder clause just gets ignored. How do you server records in a specific order when the order column is on the join model? @product.product_images produces this SQL: SELECT product_images.id, product_images.created_at FROM product_images INNER JOIN image_links ON product_images.id = image_links.product_image_id WHERE (image_links.product_id = 1) ORDER BY image_links.position Whats the problem here? -- Posted via http://www.ruby-forum.com/.