I have a model like so
class Product < ActiveRecord::Base
has_many :image_links, :order => :position
:order => ‘image_links.position’,
:through => :image_links
The problem is that :order 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
Whats the problem here?