I was returning array of arrays from my queries but now I return array of hashes so that way I can specify the elements by their column names in the table. Then I used the AS thing in SQL to rename said columns to something that made more sense for readability in the template. I think SQL is finally starting to feel like 😏 to me rather than 😩

Sign in to participate in the conversation

A Mastodon instance for Rubyists & friends