arguments do not need to be an array

lazylester Jan 5, 2015 1 thank

it's a small point, but if you look at the source, the method is defined with the splat operator in the arguments: def select (*fields) this means that a list of arguments is automatically converted to an array. There is no typo in the description above.

It will also work to pass an array:...

See also ConditionVariable

stevecj Dec 9, 2014

If you need to and processing with respect to a particular resource between 2 or more threads in more complicated ways, it is likely that ConditionVariable is what you're looking for.

Elements need to be in same order

hescano Nov 17, 2014

Note that even if the arrays have the same content, the elements need to be ordered:

==== Example:

x = [1, 2, 3]
y = [3, 2, 1]
z = [1, 2, 3]

x.eql?(y) #=> false
x.eql?(z) #=> true
x.eql?(y.sort) #=> true

Non Layout Pages

gabe1k Nov 7, 2014

A 404 error for the favicon will be thrown on pages where there is no layout if there isn't a favicon in the public folder.

A situation would be when a controller method is used to render an image and the user chooses to open the image in a new tab bypassing the layout and the favicon_link_tag.