Order by newid()

I want to get a set of records in random order. Will
Car.order(‘newid()’) work? Is there a better way to do this? Rails 3.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs