Why is Rails generating incorrect SQL for an order by clause? -
Why does Rail 3.2.14 generate wrong orders by section for this relationship? What's going on here
2.0.0p247: 306> U.comments.order (created_at :: desc)
Refinery :: Group :: Select comment load (0.3ms)
refinery_group group . * From
refinery_group group WHERE
refinery_group group .
user_id = 56 command '---' \ n: created_it :: desc \ n '
In Rail, 3.2 or older,
order is expected of a string:
u.comments Style 4.0 was added.
order (created_name :: desc)
Comments
Post a Comment