September 26 2020
Rails Tip: Non-Database Attribute in ActiveRecord SQL Query
ActiveRecord in Rails makes it easy to collect items using SQL commands, but if you want to also add attributes that are not database columns, this is what to do: