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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -