What are some of the things about Ruby on Rails that most developers don't know?
The page points out two Rails details: ActiveRecord::Relation#to_sql exposes the SQL behind a query, and association conditions can reuse a model's own where_values_hash instead of hard-coding schema details.