Ruby on Rails
Rietta's Ruby on Rails posts cover application security, dependency management, background jobs, database migrations, and Rails tutorials.
Subscribe to Ruby on Rails posts via RSS
04/18/2012
mod_deflate: Dramatic website speed increase with Apache compression on Ubuntu Linux
by Frank Rietta
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
01/24/2012
Rails: Point DNS to 127.0.0.1 to Test Wildcard Subdomains on WEBrick
by Frank Rietta
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/14/2012
Rails: TypeError: nil can't be coerced into Float
by Frank Rietta
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
by Frank Rietta
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
by Frank Rietta
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.