Ruby on Rails
Rietta's Ruby on Rails posts cover application security, dependency management, background jobs, database migrations, and Rails tutorials.
05/04/2015
Uniqueness Validation Race Condition in Ruby on Rails applications
by Frank Rietta
It's easy for race conditions to slip into your code and out into production. 'validates :field_name, uniqueness: true' is not enough to prevent duplicates in your database; here's how to enforce data integrity with both validations and unique indexes.
03/30/2015
Adding a Rake Task for SQL Views to a Rails Project
by Frank Rietta
How to keep SQL views as .sql files in db/sql_views and add a custom 'rake db:views' task to a Rails project, treating database views like ActiveRecord models.
03/13/2015
Get the Current Year in the Ruby programming language
by Frank Rietta
Get the current year in Ruby using Time, Date, or DateTime, then compare benchmark results across these methods on both MRI Ruby 2.2 and JRuby 1.7.19.
02/19/2015
New Video! Understanding & Defending Against Data Breaches
by Frank Rietta
Security incidents that lead to customer data breaches, which have been happening at an increasing rate. Most of these incidents are preventable, some would have even been stopped by simply having two factor authentication for staff member access.
01/09/2015
Two new videos! How a Ruby on Rails developer can help prevent a Data Breach
by Frank Rietta
Videos of the data breaches and Ruby on Rails are now up on YouTube! Level up on your security knowledge because good software security needs to be a moral stance!
09/19/2014
Learn how Upworthy scaled a Ruby on Rails application to serve massive traffic
by Frank Rietta
Upworthy's backend is built on Ruby on Rails with an effective use of the Fastly CDN to deliver very high performance at scale.