/ Published in: Ruby
Expand |
Embed | Plain Text
@posts.sort_by(&:date).each do |post| puts post end @tasks = {} TaskList.find(:all).group_by(&:type) do |type, subtasks| @tasks[type] = subtasks.group_by(&:name) end
You need to login to post a comment.
