Rails, Ruby, how to sort an Array?

后端 未结 6 1488
忘了有多久
忘了有多久 2021-01-31 07:13

in my rails app I\'m creating an array like so:

@messages.each do |message|

  @list << {
    :id => message.id,
    :title => message.title,
    :ti         


        
6条回答
提交回复
热议问题