Ruby on Rails

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

05/06/2012

New GIT Time Extractor Gem

Read More: New GIT Time Extractor Gem

04/18/2012

mod_deflate: Dramatic website speed increase with Apache compression on Ubuntu Linux

How to supercharge your mobile visitor's experience with mod_deflate, which tends to provide a 62% to 72% savings on bandwidth required to deliver each page.

Read More: mod_deflate: Dramatic website speed increase with Apache compression on Ubuntu Linux

02/03/2012

[Rails] Good Random Positive Integer

Read More: [Rails] Good Random Positive Integer

01/24/2012

Rails: Point DNS to 127.0.0.1 to Test Wildcard Subdomains on WEBrick

Point a subdomain and wildcard subdomain of your DNS to 127.0.0.1 to quickly test domain and subdomain-based routing in your Rails applications locally.

Read More: Rails: Point DNS to 127.0.0.1 to Test Wildcard Subdomains on WEBrick

01/18/2012

Rails: Gmail Reply-To on Contact Form Email

Read More: Rails: Gmail Reply-To on Contact Form Email

01/14/2012

Rails: TypeError: nil can't be coerced into Float

In Rails, whinny nil exceptions are a real pain. I like to use to_f when computing float values because nil.to_f is 0.0.

Read More: Rails: TypeError: nil can't be coerced into Float

01/02/2012

Integrate Blog Content with your Rails 3 Website with Pure Ruby Code and RSS

Read More: Integrate Blog Content with your Rails 3 Website with Pure Ruby Code and RSS

12/21/2011

Conditionally Including Resources on SSL or non-SSL to Avoid Mixed Content Security Warnings in Ruby on Rails

Content served over HTTPS must load embedded resources, like badge images and YouTube videos, over HTTPS, or a mixed content error says the site isn't safe.

Read More: Conditionally Including Resources on SSL or non-SSL to Avoid Mixed Content Security Warnings in Ruby on Rails