I have this line:
我有这条线:
my_array.map do |x|
if x.to_i == 0
x.starts_with?("new") ? x[3..-1] : ''
else
Tag.find(x).name
end
end
my_array.map do |xI have this line:
我有这条线:
my_array.map do |x|
if x.to_i == 0
x.starts_with?("new") ? x[3..-1] : ''
else
Tag.find(x).name
end
end
my_array.map do |x