[Solved] Select elements in array rails [closed] December 8, 2022 by Kirat [ad_1]Array#[] accepts a Range instance, and the right boundary can be negative, specifying the amount of elements from the end:x[1..-1] [ad_2]solved Select elements in array rails [closed]