Welcome Guest, Not a member yet? Register   Sign In
ActiveRecord order by random broken on MySQL ?
#7

[eluser]girv[/eluser]
@ImageSmith thanks

On re-reading the user guide, I think that syntax may really be intended just for the case where you have a sort direction after each field name. Adding the spaces seems to "fool" the processing into doing the right thing Smile

I changed my base model class to explode() the comma separated order parameter and call order_by for each segment.


Messages In This Thread
ActiveRecord order by random broken on MySQL ? - by El Forum - 11-17-2008, 10:32 AM
ActiveRecord order by random broken on MySQL ? - by El Forum - 11-18-2008, 09:20 AM
ActiveRecord order by random broken on MySQL ? - by El Forum - 11-18-2008, 10:28 AM
ActiveRecord order by random broken on MySQL ? - by El Forum - 11-18-2008, 10:40 AM
ActiveRecord order by random broken on MySQL ? - by El Forum - 11-18-2008, 10:46 AM
ActiveRecord order by random broken on MySQL ? - by El Forum - 11-18-2008, 04:21 PM
ActiveRecord order by random broken on MySQL ? - by El Forum - 11-18-2008, 04:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB