/ Published in: Ruby

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
@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
Comments
