Ruby on Rails

Rietta's Ruby on Rails posts cover application security, dependency management, background jobs, database migrations, and Rails tutorials.

09/05/2017

Engine Yard's 17 Rails Security Tips

Read More: Engine Yard's 17 Rails Security Tips

10/22/2016

Rails: Set Max Length on Fields

Read More: Rails: Set Max Length on Fields

10/15/2015

Ruby Application Security Talk Featured in Ruby Weekly Issue # 268

My Rocky Mountain Ruby 2015 talk, "Defending Against Data Breaches, as a Practicing Ruby Developer," was featured in Ruby Weekly issue #268.

Read More: Ruby Application Security Talk Featured in Ruby Weekly Issue # 268

05/04/2015

Uniqueness Validation Race Condition in Ruby on Rails applications

Race conditions slip into production easily. 'validates :field_name, uniqueness: true' won't prevent duplicates; enforce data integrity with unique indexes too.

Read More: Uniqueness Validation Race Condition in Ruby on Rails applications

03/30/2015

Adding a Rake Task for SQL Views to a Rails Project

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.

Read More: Adding a Rake Task for SQL Views to a Rails Project

03/13/2015

Get the Current Year in the Ruby programming language

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.

Read More: Get the Current Year in the Ruby programming language

02/19/2015

New Video! Understanding & Defending Against Data Breaches

Customer data breaches are happening at an increasing rate. Most are preventable; some would have been stopped by two factor authentication for staff access.

Read More: New Video! Understanding & Defending Against Data Breaches

01/09/2015

Two new videos! How a Ruby on Rails developer can help prevent a Data Breach

Videos on data breaches and Ruby on Rails are now on YouTube! Level up your security knowledge, because good software security needs to be a moral stance!

Read More: Two new videos! How a Ruby on Rails developer can help prevent a Data Breach

09/19/2014

Learn how Upworthy scaled a Ruby on Rails application to serve massive traffic

Upworthy's backend is built on Ruby on Rails with an effective use of the Fastly CDN to deliver very high performance at scale.

Read More: Learn how Upworthy scaled a Ruby on Rails application to serve massive traffic

06/05/2014

What a Ruby developer can do to help prevent a Data Breach - 2014

Read More: What a Ruby developer can do to help prevent a Data Breach - 2014