I'm a bit surprised that this returns a string instead of an int: Book.find_by_sql("select name, 5 as some_number from books").first.some_number My buddy Shailen was the one who pointed this out to me.
This is a purely technical blog concerning topics such as Python, Ruby, Scala, Go, JavaScript, Linux, open source software, the Web, and lesser-known programming languages.
Ad maiorem Dei gloriam inque hominum salutem.