Express yourself clearly with positive? and negative? for numbers
andycroll.com/ruby/express-y…
Play in a sandbox in production
andycroll.com/ruby/play-in-a…
Beware of <%== in your erb files
andycroll.com/ruby/beware-of…
Really, Really, Really Don’t Interpolate Strings into Active Record Methods
andycroll.com/ruby/really-re…
Assign a default value to an attribute in Active Record
andycroll.com/ruby/assign-a-…
Consider find_each for looping through Active Record associations
andycroll.com/ruby/consider-…
124
Try not to loop through associations inside jobs
andycroll.com/ruby/try-not-t…
Only use locals in view partials
andycroll.com/ruby/only-use-…
Find out what callbacks are defined on an Active Record model in the console
andycroll.com/ruby/find-list…
Safely Remove a Column from an Active Record Model
andycroll.com/ruby/safely-re…
Use zero? for comparison of numerics like Integer, Float and BigDecimal
andycroll.com/ruby/use-zero-…
Time Ranges are Clearer When Querying Databases
andycroll.com/ruby/time-rang…
Time extensions are an unsung hero of Active Support
andycroll.com/ruby/date-and-…
Use before? and after? Methods When Comparing Dates and Times in Rails
andycroll.com/ruby/use-befor…
Know what your scopes are doing: where.first vs find_by
andycroll.com/ruby/where-fir…
Software & Infrastructure we use to Run Our SaaS
andycroll.com/ruby/infrastru…
Enqueue Jobs Quickly with Sidekiq’s Bulk Features
andycroll.com/ruby/enqueue-j…
Don't Use Floats and Use the Ruby Money Gem to Represent Currencies
andycroll.com/ruby/dont-use-…
