0
У меня есть вспомогательный метод, который сбойный в представлении:Выведение массива Ruby, в HTML
module WeeksHelper
# This is to create an array for a JS chart -
# this creates an array to insert
# into a JS options hash such as [1,2,3,4,5] but when
# this is outputted to the HTML, the array appears like this:
# [12345]. How do I reinsert the commas in the view?
def chart_xs(weeks)
1.upto(weeks.count).to_a
end
end
сначала приходят сначала на прием. –