100 Experience
0 Lessons Completed
0 Questions Solved


Hi guys,

I have an array of objects in Ruby on Rails. I want to sort the array by an attribute of the object. Is it possible?

I want to pass the path this to a resque worker which will act upon this file. This worker is unable to find this file and the File.exists? Return a false even though the same method returns true in the controller class. This is happening intermittently and I assume there is a race condition. Any suggestions as to what could be the issue and how to handle it?

Please give me some advice...

Thanks in advance.

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.